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

[Telink] Block device role changing into Router if commissioning window opened and device not yet Router #25395

Conversation

s07641069
Copy link
Contributor

Problem

In case if commissioning window opened before FTD device becomes Router (still Child) you will see fails of pair or device will be not reachable after pairing with second controller.
Successful commissioning with second controller is possible only in case if commissioning window opened after device becomes Router or switching into Router starts after finish of second pairing.

Change overview

Block device role changing into Router if commissioning window opened and device not yet Router.

Testing

Tested manually.

Steps:

  • Pair FTD device with Apple Home (Apple HomePod Mini)
  • Open commissioning window before FTD device becomes Router
  • Pair device with Google Home (Google Nest Hub)
  • Device paired successfully and controllable
  • Device becomes Router after commissioning window closed (second device paired)

@github-actions
Copy link

github-actions bot commented Mar 1, 2023

PR #25395: Size comparison from eff5773 to 17571fe

Increases (1 build for cc32xx)
platform target config section eff5773 17571fe change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_line 2657207 2657215 8 0.0
Full report (1 build for cc32xx)
platform target config section eff5773 17571fe change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 643465 643465 0 0.0
(read/write) 203688 203688 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197088 197088 0 0.0
.comment 194 194 0 0.0
.data 1480 1480 0 0.0
.debug_abbrev 930167 930167 0 0.0
.debug_aranges 87336 87336 0 0.0
.debug_frame 300024 300024 0 0.0
.debug_info 20262893 20262893 0 0.0
.debug_line 2657207 2657215 8 0.0
.debug_loc 2799993 2799993 0 0.0
.debug_ranges 282240 282240 0 0.0
.debug_str 3023883 3023883 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105929 105929 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 378514 378514 0 0.0
.symtab 256560 256560 0 0.0
.text 535412 535412 0 0.0

- Add Thread stack lock during otThreadSetRouterEligible
- Suppress Router promotion whenever any commissioning window is open
@github-actions
Copy link

github-actions bot commented Mar 1, 2023

PR #25395: Size comparison from eff5773 to 3f77303

Increases (1 build for cc32xx)
platform target config section eff5773 3f77303 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 20262893 20262897 4 0.0
.debug_line 2657207 2657212 5 0.0
Full report (1 build for cc32xx)
platform target config section eff5773 3f77303 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 643465 643465 0 0.0
(read/write) 203688 203688 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197088 197088 0 0.0
.comment 194 194 0 0.0
.data 1480 1480 0 0.0
.debug_abbrev 930167 930167 0 0.0
.debug_aranges 87336 87336 0 0.0
.debug_frame 300024 300024 0 0.0
.debug_info 20262893 20262897 4 0.0
.debug_line 2657207 2657212 5 0.0
.debug_loc 2799993 2799993 0 0.0
.debug_ranges 282240 282240 0 0.0
.debug_str 3023883 3023883 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105929 105929 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 378514 378514 0 0.0
.symtab 256560 256560 0 0.0
.text 535412 535412 0 0.0

@github-actions
Copy link

github-actions bot commented Mar 1, 2023

PR #25395: Size comparison from eff5773 to 01991d3

Increases (1 build for cc32xx)
platform target config section eff5773 01991d3 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 20262893 2026289 5 0.0
.debug_line 2657207 2657212 5 0.0
Full report (1 build for cc32xx)
platform target config section eff5773 01991d3 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 643465 643465 0 0.0
(read/write) 203688 203688 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197088 197088 0 0.0
.comment 194 194 0 0.0
.data 1480 1480 0 0.0
.debug_abbrev 930167 930167 0 0.0
.debug_aranges 87336 87336 0 0.0
.debug_frame 300024 300024 0 0.0
.debug_info 20262893 2026289 5 0.0
.debug_line 2657207 2657212 5 0.0
.debug_loc 2799993 2799993 0 0.0
.debug_ranges 282240 282240 0 0.0
.debug_str 3023883 3023883 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105929 105929 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 378514 378514 0 0.0
.symtab 256560 256560 0 0.0
.text 535412 535412 0 0.0

@github-actions github-actions bot added linux tizen For Tizen platform labels Mar 2, 2023
@github-actions
Copy link

github-actions bot commented Mar 2, 2023

PR #25395: Size comparison from 1a1d0c3 to 332fd6a

Increases (1 build for cc32xx)
platform target config section 1a1d0c3 332fd6a change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 20262923 20262927 4 0.0
.debug_line 2657815 2657820 5 0.0
Full report (1 build for cc32xx)
platform target config section 1a1d0c3 332fd6a change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 643465 643465 0 0.0
(read/write) 203688 203688 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197088 197088 0 0.0
.comment 194 194 0 0.0
.data 1480 1480 0 0.0
.debug_abbrev 930213 930213 0 0.0
.debug_aranges 87336 87336 0 0.0
.debug_frame 300024 300024 0 0.0
.debug_info 20262923 20262927 4 0.0
.debug_line 2657815 2657820 5 0.0
.debug_loc 2800026 2800026 0 0.0
.debug_ranges 282240 282240 0 0.0
.debug_str 3023883 3023883 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105929 105929 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 378514 378514 0 0.0
.symtab 256560 256560 0 0.0
.text 535412 535412 0 0.0

@s07641069
Copy link
Contributor Author

s07641069 commented Mar 2, 2023

@Damian-Nordic @bzbarsky-apple
Looks like PR ready for merge.
I did more testing after last changes and everything works fine.

@andy31415 andy31415 merged commit c126158 into project-chip:master Mar 2, 2023
@s07641069 s07641069 deleted the block_device_role_changing_if_comm_window_opened branch March 3, 2023 07:38
lecndav pushed a commit to lecndav/connectedhomeip that referenced this pull request Mar 22, 2023
…ow opened and device not yet Router (project-chip#25395)

* [Telink] Block device role changing into Router if commissioning window opened and device not yet Router

* [Telink] Add CHIP_DEVICE_CONFIG_ENABLE_THREAD check

* [Telink] - Add API in ThreadStackManager
- Add Thread stack lock during otThreadSetRouterEligible
- Suppress Router promotion whenever any commissioning window is open

* [Telink] Fix typo

* [Telink] Move device role check into SetRouterPromotion

* [Telink] Use _SetRouterPromotion only for FTD

* [Telink] Move SetRouterPromotion(false) at the end of OpenCommissioningWindow
woody-apple added a commit to woody-apple/connectedhomeip that referenced this pull request Aug 22, 2023
…ing window opened and device not yet Router (project-chip#25395)"

This reverts commit c126158.
woody-apple added a commit to woody-apple/connectedhomeip that referenced this pull request Aug 23, 2023
…ing window opened and device not yet Router (project-chip#25395)"

This reverts commit c126158.
woody-apple added a commit to woody-apple/connectedhomeip that referenced this pull request Aug 23, 2023
…ing window opened and device not yet Router (project-chip#25395)"

This reverts commit c126158.
mergify bot pushed a commit that referenced this pull request Aug 24, 2023
#28848)

* Revert "[Telink] Move SetRouterPromotion(false) at the end of OpenCommissioningWindow (#25517)"

This reverts commit 37c3db9.

* Revert "[Telink] Block device role changing into Router if commissioning window opened and device not yet Router (#25395)"

This reverts commit c126158.
abpoth pushed a commit to abpoth/connectedhomeip that referenced this pull request Aug 25, 2023
project-chip#28848)

* Revert "[Telink] Move SetRouterPromotion(false) at the end of OpenCommissioningWindow (project-chip#25517)"

This reverts commit 37c3db9.

* Revert "[Telink] Block device role changing into Router if commissioning window opened and device not yet Router (project-chip#25395)"

This reverts commit c126158.
HunsupJung pushed a commit to HunsupJung/connectedhomeip that referenced this pull request Oct 23, 2023
project-chip#28848)

* Revert "[Telink] Move SetRouterPromotion(false) at the end of OpenCommissioningWindow (project-chip#25517)"

This reverts commit 37c3db9.

* Revert "[Telink] Block device role changing into Router if commissioning window opened and device not yet Router (project-chip#25395)"

This reverts commit c126158.
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.

5 participants