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

[ble] Fixed controller not being able to commission device after first attempt failure #13287

Conversation

kkasperczyk-no
Copy link
Contributor

@kkasperczyk-no kkasperczyk-no commented Dec 30, 2021

Problem

Sometimes it happens that if in specific moment of device commissioning over Bluetooth LE the connection will be closed
(e.g. by turning off HCI adapter to simulate hardware problems) the controller is not able to commission the device on the second attempt due to incorrect state. See #13286 for more details.

Change overview

  • Added setting BLE state to kInitialized if BLE connection establishment failed.
  • Added cleaning rendezvous data if some PASE establisment error appeared.

Testing

Verified with Python CHIP controller and nrfconnect lock-app example that it is possible to attempt several commissioning attempts after breaking BLE connection during communication by turning off Bluetooth HCI adapter.

Fixes: #13286

@github-actions
Copy link

github-actions bot commented Dec 30, 2021

PR #13287: Size comparison from 99c1985 to 0967321

Increases (16 builds for efr32, esp32, mbed, nrfconnect, p6, qpg)
platform target config section 99c1985 0967321 change % change
efr32 lighting-app BRD4161A (read only) 828924 828940 16 0.0
.text 828916 828932 16 0.0
BRD4161A+rpc (read only) 816552 816568 16 0.0
.text 816544 816560 16 0.0
window-app BRD4161A (read only) 802372 802388 16 0.0
.text 802364 802380 16 0.0
esp32 all-clusters-app c3devkit (read only) 882900 882908 8 0.0
.flash.text 882900 882908 8 0.0
m5stack (read only) 943439 943447 8 0.0
.flash.text 938055 938063 8 0.0
mbed lighting-app CY8CPROTO_062_4343W+release (read/write) 2329040 2329104 64 0.0
.text 1291640 1291704 64 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 935247 935263 16 0.0
text 631528 631536 8 0.0
nrf52840dk_nrf52840+rpc text 626840 626848 8 0.0
nrf5340dk_nrf5340_cpuapp text 558964 558972 8 0.0
lock-app nrf52840dk_nrf52840 text 609460 609468 8 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 831422 831438 16 0.0
text 536940 536948 8 0.0
pump-app nrf52840dk_nrf52840 (read/write) 908739 908755 16 0.0
text 610676 610684 8 0.0
pump-controller-app nrf52840dk_nrf52840 text 608208 608216 8 0.0
p6 lock-app default (read/write) 2295880 2295896 16 0.0
.text 1254144 1254160 16 0.0
qpg lighting-app qpg6105+debug (read only) 531096 531104 8 0.0
.text 525776 525784 8 0.0
lock-app qpg6105+debug (read only) 502876 502884 8 0.0
.text 497556 497564 8 0.0
Decreases (1 build for linux)
platform target config section 99c1985 0967321 change % change
linux chip-tool-ipv6only arm64 (read only) 7010188 7010092 -96 -0.0
.text 5934516 5934420 -96 -0.0
Full report (31 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 99c1985 0967321 change % change
efr32 lighting-app BRD4161A (read only) 828924 828940 16 0.0
(read/write) 127052 127052 0 0.0
.bss 125176 125176 0 0.0
.data 1876 1876 0 0.0
.text 828916 828932 16 0.0
BRD4161A+rpc (read only) 816552 816568 16 0.0
(read/write) 143720 143720 0 0.0
.bss 141744 141744 0 0.0
.data 1976 1976 0 0.0
.text 816544 816560 16 0.0
window-app BRD4161A (read only) 802372 802388 16 0.0
(read/write) 125992 125992 0 0.0
.bss 124160 124160 0 0.0
.data 1832 1832 0 0.0
.text 802364 802380 16 0.0
esp32 all-clusters-app c3devkit (read only) 882900 882908 8 0.0
(read/write) 1312498 1312498 0 0.0
.dram0.bss 69104 69104 0 0.0
.dram0.data 14228 14228 0 0.0
.flash.rodata 176104 176104 0 0.0
.flash.text 882900 882908 8 0.0
.iram0.text 62254 62254 0 0.0
m5stack (read only) 943439 943447 8 0.0
(read/write) 441600 441600 0 0.0
.dram0.bss 73600 73600 0 0.0
.dram0.data 34056 34056 0 0.0
.flash.rodata 202936 202936 0 0.0
.flash.text 938055 938063 8 0.0
.iram0.text 122671 122671 0 0.0
k32w light k32w061+release (read/write) 647440 647440 0 0.0
.bss 76184 76184 0 0.0
.data 1904 1904 0 0.0
.text 563552 563552 0 0.0
lock k32w061+release (read/write) 632264 632264 0 0.0
.bss 75896 75896 0 0.0
.data 1860 1860 0 0.0
.text 548708 548708 0 0.0
linux chip-tool-ipv6only arm64 (read only) 7010188 7010092 -96 -0.0
(read/write) 324849 324849 0 0.0
.bss 54209 54209 0 0.0
.data 1096 1096 0 0.0
.data.rel.ro 208960 208960 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 383300 383300 0 0.0
.text 5934516 5934420 -96 -0.0
thermostat-no-ble arm64 (read only) 2021852 2021852 0 0.0
(read/write) 143937 143937 0 0.0
.bss 63985 63985 0 0.0
.data 880 880 0 0.0
.data.rel.ro 72200 72200 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 128476 128476 0 0.0
.text 1680848 1680848 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2338944 2338944 0 0.0
.bss 188364 188364 0 0.0
.data 5272 5272 0 0.0
.text 1301520 1301520 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2329040 2329104 64 0.0
.bss 180608 180608 0 0.0
.data 5552 5552 0 0.0
.text 1291640 1291704 64 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2302200 2302200 0 0.0
.bss 179656 179656 0 0.0
.data 5544 5544 0 0.0
.text 1264800 1264800 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) 2053888 2053888 0 0.0
.bss 156972 156972 0 0.0
.data 4864 4864 0 0.0
.text 1016488 1016488 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 935247 935263 16 0.0
bss 118172 118172 0 0.0
rodata 107996 107996 0 0.0
text 631528 631536 8 0.0
nrf52840dk_nrf52840+rpc (read/write) 921651 921651 0 0.0
bss 115216 115216 0 0.0
rodata 101416 101416 0 0.0
text 626840 626848 8 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 859014 859014 0 0.0
bss 116456 116456 0 0.0
rodata 102924 102924 0 0.0
text 558964 558972 8 0.0
lock-app nrf52840dk_nrf52840 (read/write) 907507 907507 0 0.0
bss 117360 117360 0 0.0
rodata 103304 103304 0 0.0
text 609460 609468 8 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 831422 831438 16 0.0
bss 115672 115672 0 0.0
rodata 98268 98268 0 0.0
text 536940 536948 8 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) 908739 908755 16 0.0
bss 117120 117120 0 0.0
rodata 103520 103520 0 0.0
text 610676 610684 8 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 905587 905587 0 0.0
bss 117148 117148 0 0.0
rodata 102776 102776 0 0.0
text 608208 608216 8 0.0
shell nrf52840dk_nrf52840 (read/write) 796871 796871 0 0.0
bss 109536 109536 0 0.0
rodata 78200 78200 0 0.0
text 532680 532680 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 709502 709502 0 0.0
bss 107424 107424 0 0.0
rodata 72500 72500 0 0.0
text 450172 450172 0 0.0
p6 all-clusters-app default (read/write) 2391112 2391112 0 0.0
.bss 116564 116564 0 0.0
.data 2552 2552 0 0.0
.text 1349376 1349376 0 0.0
light-app default (read/write) 2323680 2323680 0 0.0
.bss 105856 105856 0 0.0
.data 2384 2384 0 0.0
.text 1281944 1281944 0 0.0
lock-app default (read/write) 2295880 2295896 16 0.0
.bss 104736 104736 0 0.0
.data 2336 2336 0 0.0
.text 1254144 1254160 16 0.0
qpg lighting-app qpg6105+debug (read only) 531096 531104 8 0.0
(read/write) 146936 146936 0 0.0
.bss 86656 86656 0 0.0
.data 1004 1004 0 0.0
.text 525776 525784 8 0.0
lock-app qpg6105+debug (read only) 502876 502884 8 0.0
(read/write) 146940 146940 0 0.0
.bss 85792 85792 0 0.0
.data 952 952 0 0.0
.text 497556 497564 8 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) 831754 831754 0 0.0
bss 86840 86840 0 0.0
noinit 37160 37160 0 0.0
text 580232 580232 0 0.0

@kkasperczyk-no kkasperczyk-no force-pushed the controller_incorrect_state_fix_pr branch from 0967321 to 333afb1 Compare January 10, 2022 08:52
@github-actions
Copy link

github-actions bot commented Jan 10, 2022

PR #13287: Size comparison from b7ff37e to 333afb1

Increases (6 builds for k32w, p6, qpg)
platform target config section b7ff37e 333afb1 change % change
k32w light k32w061+release (read/write) 655324 655340 16 0.0
.text 570900 570916 16 0.0
p6 all-clusters-app default (read/write) 2401656 2401672 16 0.0
.text 1359920 1359936 16 0.0
light-app default (read/write) 2323680 2323696 16 0.0
.text 1281944 1281960 16 0.0
lock-app default (read/write) 2295904 2295920 16 0.0
.text 1254168 1254184 16 0.0
qpg lighting-app qpg6105+debug (read only) 533192 533208 16 0.0
.text 527872 527888 16 0.0
lock-app qpg6105+debug (read only) 504968 504984 16 0.0
.text 499648 499664 16 0.0
Decreases (1 build for linux)
platform target config section b7ff37e 333afb1 change % change
linux chip-tool-ipv6only arm64 (read only) 7105148 7105068 -80 -0.0
.text 6019716 6019636 -80 -0.0
Full report (11 builds for k32w, linux, p6, qpg, telink)
platform target config section b7ff37e 333afb1 change % change
k32w light k32w061+release (read/write) 655324 655340 16 0.0
.bss 76776 76776 0 0.0
.data 1848 1848 0 0.0
.text 570900 570916 16 0.0
lock k32w061+release (read/write) 659632 659632 0 0.0
.bss 77072 77072 0 0.0
.data 1868 1868 0 0.0
.text 574892 574892 0 0.0
linux chip-tool-ipv6only arm64 (read only) 7105148 7105068 -80 -0.0
(read/write) 327009 327009 0 0.0
.bss 54865 54865 0 0.0
.data 1096 1096 0 0.0
.data.rel.ro 209392 209392 0 0.0
.dynamic 560 560 0 0.0
.got 57968 57968 0 0.0
.init 24 24 0 0.0
.init_array 168 168 0 0.0
.rodata 388884 388884 0 0.0
.text 6019716 6019636 -80 -0.0
thermostat-no-ble arm64 (read only) 2033868 2033868 0 0.0
(read/write) 145089 145089 0 0.0
.bss 64657 64657 0 0.0
.data 880 880 0 0.0
.data.rel.ro 72624 72624 0 0.0
.dynamic 560 560 0 0.0
.got 4000 4000 0 0.0
.init 24 24 0 0.0
.init_array 296 296 0 0.0
.rodata 128988 128988 0 0.0
.text 1691232 1691232 0 0.0
p6 all-clusters-app default (read/write) 2401656 2401672 16 0.0
.bss 116804 116804 0 0.0
.data 2592 2592 0 0.0
.text 1359920 1359936 16 0.0
light-app default (read/write) 2323680 2323696 16 0.0
.bss 105672 105672 0 0.0
.data 2384 2384 0 0.0
.text 1281944 1281960 16 0.0
lock-app default (read/write) 2295904 2295920 16 0.0
.bss 104552 104552 0 0.0
.data 2336 2336 0 0.0
.text 1254168 1254184 16 0.0
qpg lighting-app qpg6105+debug (read only) 533192 533208 16 0.0
(read/write) 146936 146936 0 0.0
.bss 86624 86624 0 0.0
.data 1004 1004 0 0.0
.text 527872 527888 16 0.0
lock-app qpg6105+debug (read only) 504968 504984 16 0.0
(read/write) 146940 146940 0 0.0
.bss 85760 85760 0 0.0
.data 952 952 0 0.0
.text 499648 499664 16 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) 834522 834522 0 0.0
bss 86924 86924 0 0.0
noinit 37160 37160 0 0.0
text 582766 582766 0 0.0

…t attempt failure

Sometimes it happens that if in specific moment of device
commissioning over Bluetooth LE the connection will be closed
(e.g. by turning off HCI adapter to simulate hardware problems)
the controller is not able to commission the device on the second
attempt due to incorrect state.

* Added setting BLE state to kInitialized if BLE connection
establishment failed.
* Added cleaning rendezvous data if some PASE establisment
error appeared.
@kkasperczyk-no kkasperczyk-no force-pushed the controller_incorrect_state_fix_pr branch from 333afb1 to f3df25e Compare January 10, 2022 09:32
@github-actions
Copy link

github-actions bot commented Jan 10, 2022

PR #13287: Size comparison from b7ff37e to f3df25e

Increases (16 builds for efr32, esp32, k32w, nrfconnect, p6, qpg)
platform target config section b7ff37e f3df25e change % change
efr32 window-app BRD4161A (read only) 802692 802708 16 0.0
.text 802684 802700 16 0.0
esp32 all-clusters-app c3devkit (read only) 891904 891912 8 0.0
.flash.text 891904 891912 8 0.0
m5stack (read only) 951843 951851 8 0.0
.flash.text 946459 946467 8 0.0
k32w light k32w061+release (read/write) 655324 655340 16 0.0
.text 570900 570916 16 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 text 633324 633332 8 0.0
nrf52840dk_nrf52840+rpc (read/write) 923511 923527 16 0.0
text 628636 628644 8 0.0
nrf5340dk_nrf5340_cpuapp text 550256 550264 8 0.0
lock-app nrf52840dk_nrf52840 text 611188 611196 8 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 820418 820434 16 0.0
text 528164 528172 8 0.0
pump-app nrf52840dk_nrf52840 (read/write) 910523 910539 16 0.0
text 612404 612412 8 0.0
pump-controller-app nrf52840dk_nrf52840 text 609936 609944 8 0.0
p6 all-clusters-app default (read/write) 2401656 2401672 16 0.0
.text 1359920 1359936 16 0.0
light-app default (read/write) 2323680 2323696 16 0.0
.text 1281944 1281960 16 0.0
lock-app default (read/write) 2295904 2295920 16 0.0
.text 1254168 1254184 16 0.0
qpg lighting-app qpg6105+debug (read only) 533192 533208 16 0.0
.text 527872 527888 16 0.0
lock-app qpg6105+debug (read only) 504968 504984 16 0.0
.text 499648 499664 16 0.0
Decreases (1 build for linux)
platform target config section b7ff37e f3df25e change % change
linux chip-tool-ipv6only arm64 (read only) 7105148 7105068 -80 -0.0
.text 6019716 6019636 -80 -0.0
Full report (31 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section b7ff37e f3df25e change % change
efr32 lighting-app BRD4161A (read only) 829244 829244 0 0.0
(read/write) 126996 126996 0 0.0
.bss 125120 125120 0 0.0
.data 1876 1876 0 0.0
.text 829236 829236 0 0.0
BRD4161A+rpc (read only) 816888 816888 0 0.0
(read/write) 143656 143656 0 0.0
.bss 141680 141680 0 0.0
.data 1976 1976 0 0.0
.text 816880 816880 0 0.0
window-app BRD4161A (read only) 802692 802708 16 0.0
(read/write) 125936 125936 0 0.0
.bss 124104 124104 0 0.0
.data 1832 1832 0 0.0
.text 802684 802700 16 0.0
esp32 all-clusters-app c3devkit (read only) 891904 891912 8 0.0
(read/write) 1314010 1314010 0 0.0
.dram0.bss 69464 69464 0 0.0
.dram0.data 14236 14236 0 0.0
.flash.rodata 177248 177248 0 0.0
.flash.text 891904 891912 8 0.0
.iram0.text 62254 62254 0 0.0
m5stack (read only) 951843 951851 8 0.0
(read/write) 445592 445592 0 0.0
.dram0.bss 73960 73960 0 0.0
.dram0.data 34064 34064 0 0.0
.flash.rodata 206560 206560 0 0.0
.flash.text 946459 946467 8 0.0
.iram0.text 122671 122671 0 0.0
k32w light k32w061+release (read/write) 655324 655340 16 0.0
.bss 76776 76776 0 0.0
.data 1848 1848 0 0.0
.text 570900 570916 16 0.0
lock k32w061+release (read/write) 659632 659632 0 0.0
.bss 77072 77072 0 0.0
.data 1868 1868 0 0.0
.text 574892 574892 0 0.0
linux chip-tool-ipv6only arm64 (read only) 7105148 7105068 -80 -0.0
(read/write) 327009 327009 0 0.0
.bss 54865 54865 0 0.0
.data 1096 1096 0 0.0
.data.rel.ro 209392 209392 0 0.0
.dynamic 560 560 0 0.0
.got 57968 57968 0 0.0
.init 24 24 0 0.0
.init_array 168 168 0 0.0
.rodata 388884 388884 0 0.0
.text 6019716 6019636 -80 -0.0
thermostat-no-ble arm64 (read only) 2033868 2033868 0 0.0
(read/write) 145089 145089 0 0.0
.bss 64657 64657 0 0.0
.data 880 880 0 0.0
.data.rel.ro 72624 72624 0 0.0
.dynamic 560 560 0 0.0
.got 4000 4000 0 0.0
.init 24 24 0 0.0
.init_array 296 296 0 0.0
.rodata 128988 128988 0 0.0
.text 1691232 1691232 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2348560 2348560 0 0.0
.bss 188724 188724 0 0.0
.data 5312 5312 0 0.0
.text 1311136 1311136 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2330752 2330752 0 0.0
.bss 180544 180544 0 0.0
.data 5552 5552 0 0.0
.text 1293352 1293352 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2303904 2303904 0 0.0
.bss 179592 179592 0 0.0
.data 5544 5544 0 0.0
.text 1266504 1266504 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) 2054256 2054256 0 0.0
.bss 157060 157060 0 0.0
.data 4864 4864 0 0.0
.text 1016856 1016856 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 937115 937115 0 0.0
bss 118112 118112 0 0.0
rodata 108120 108120 0 0.0
text 633324 633332 8 0.0
nrf52840dk_nrf52840+rpc (read/write) 923511 923527 16 0.0
bss 115156 115156 0 0.0
rodata 101548 101548 0 0.0
text 628636 628644 8 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 848094 848094 0 0.0
bss 116004 116004 0 0.0
rodata 101296 101296 0 0.0
text 550256 550264 8 0.0
lock-app nrf52840dk_nrf52840 (read/write) 909259 909259 0 0.0
bss 117300 117300 0 0.0
rodata 103392 103392 0 0.0
text 611188 611196 8 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 820418 820434 16 0.0
bss 115220 115220 0 0.0
rodata 96620 96620 0 0.0
text 528164 528172 8 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) 910523 910539 16 0.0
bss 117060 117060 0 0.0
rodata 103608 103608 0 0.0
text 612404 612412 8 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 907339 907339 0 0.0
bss 117088 117088 0 0.0
rodata 102864 102864 0 0.0
text 609936 609944 8 0.0
shell nrf52840dk_nrf52840 (read/write) 797935 797935 0 0.0
bss 109768 109768 0 0.0
rodata 78148 78148 0 0.0
text 533508 533508 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 710750 710750 0 0.0
bss 107656 107656 0 0.0
rodata 72448 72448 0 0.0
text 451188 451188 0 0.0
p6 all-clusters-app default (read/write) 2401656 2401672 16 0.0
.bss 116804 116804 0 0.0
.data 2592 2592 0 0.0
.text 1359920 1359936 16 0.0
light-app default (read/write) 2323680 2323696 16 0.0
.bss 105672 105672 0 0.0
.data 2384 2384 0 0.0
.text 1281944 1281960 16 0.0
lock-app default (read/write) 2295904 2295920 16 0.0
.bss 104552 104552 0 0.0
.data 2336 2336 0 0.0
.text 1254168 1254184 16 0.0
qpg lighting-app qpg6105+debug (read only) 533192 533208 16 0.0
(read/write) 146936 146936 0 0.0
.bss 86624 86624 0 0.0
.data 1004 1004 0 0.0
.text 527872 527888 16 0.0
lock-app qpg6105+debug (read only) 504968 504984 16 0.0
(read/write) 146940 146940 0 0.0
.bss 85760 85760 0 0.0
.data 952 952 0 0.0
.text 499648 499664 16 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) 834522 834522 0 0.0
bss 86924 86924 0 0.0
noinit 37160 37160 0 0.0
text 582766 582766 0 0.0

@Damian-Nordic Damian-Nordic merged commit 2488114 into project-chip:master Jan 10, 2022
kkasperczyk-no added a commit to kkasperczyk-no/connectedhomeip that referenced this pull request Jan 19, 2022
In project-chip#13287
the regression was introduced that starting commissioning,
while an existing commissioning is in progress will cancel it.

* Brought back previous error handling and added clearing
mDeviceBeingCommissioned to allow starting new commissioning
after previous ones fail.
woody-apple pushed a commit to kkasperczyk-no/connectedhomeip that referenced this pull request Jan 19, 2022
In project-chip#13287
the regression was introduced that starting commissioning,
while an existing commissioning is in progress will cancel it.

* Brought back previous error handling and added clearing
mDeviceBeingCommissioned to allow starting new commissioning
after previous ones fail.
bzbarsky-apple pushed a commit that referenced this pull request Jan 20, 2022
…13697)

In #13287
the regression was introduced that starting commissioning,
while an existing commissioning is in progress will cancel it.

* Brought back previous error handling and added clearing
mDeviceBeingCommissioned to allow starting new commissioning
after previous ones fail.
selissia pushed a commit to selissia/connectedhomeip that referenced this pull request Jan 28, 2022
…roject-chip#13697)

In project-chip#13287
the regression was introduced that starting commissioning,
while an existing commissioning is in progress will cancel it.

* Brought back previous error handling and added clearing
mDeviceBeingCommissioned to allow starting new commissioning
after previous ones fail.
step0035 pushed a commit to hank820/connectedhomeip that referenced this pull request Feb 8, 2022
…t attempt failure (project-chip#13287)

Sometimes it happens that if in specific moment of device
commissioning over Bluetooth LE the connection will be closed
(e.g. by turning off HCI adapter to simulate hardware problems)
the controller is not able to commission the device on the second
attempt due to incorrect state.

* Added setting BLE state to kInitialized if BLE connection
establishment failed.
* Added cleaning rendezvous data if some PASE establisment
error appeared.
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.

Controller is not able to commission the device after first attempt failure.
7 participants