-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Non concurrent mode now sends connect network response as per spec #31739
Non concurrent mode now sends connect network response as per spec #31739
Conversation
PR #31739: Size comparison from f63b505 to 202888d Increases (2 builds for mbed, stm32)
Full report (4 builds for cc32xx, mbed, stm32)
|
PR #31739: Size comparison from 5677529 to 491f160 Increases (70 builds for bl602, bl702, bl702l, cc13x4_26x4, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, stm32, telink)
Decreases (4 builds for linux)
Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, stm32, telink)
|
src/app/clusters/network-commissioning/network-commissioning.cpp
Outdated
Show resolved
Hide resolved
src/app/clusters/network-commissioning/network-commissioning.cpp
Outdated
Show resolved
Hide resolved
src/app/clusters/network-commissioning/network-commissioning.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Return all existing public API and layer new features in addition to old names, even if they go to the same place
- Refactor direct access to
DeviceLayer::ConnectivityMgr().GetBleLayer()->mState
- This seems risky/brittle given the breadth of changes. Please add an integration test that does not rely on multiple manual tests people have to keep running to prove the functioning of this feature.
- Make BLEManagerImpl.cpp error handling non-build-conditional wherever they apply uniformly
- Justify the move to
mServer->GetBleLayerObject()->Shutdown();
and how it is possible to guarantee that after a mid-commissioning failure, the window could still be open for the remainder of the time, to allow more BLE connections to support finishing the commissioning without reboot of the device.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, assuming @tcarmelveilleux's issues are addressed.
Close GATT so that BlueZ will disconnect. Add kOperationalNetworkStarted event type
|
PR #31739: Size comparison from 7113c98 to f58ab1f Increases (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, stm32, telink)
Decreases (5 builds for bl702l, linux)
Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, stm32, telink)
|
…roject-chip#31739) * Update Non-concurrent mode to latest spec (project-chip#31660) * Handle unused variable (project-chip#31660) * Restyled by clang-format * Trigger from BTP, use regular member (project-chip#31660) * Fix override (project-chip#31660) * Restyled by whitespace * Restyled by clang-format * Use generic OperationalNetworkStarted (project-chip#31660) * Replace variable with mState (project-chip#31660) Use mState instead of mTerminateOnPacketTxComplete * Sorted namespace out (project-chip#31660) * Restyled by clang-format * Address review comments (project-chip#31660)ffffffffffffffffffff Close GATT so that BlueZ will disconnect. Add kOperationalNetworkStarted event type * Restyled by clang-format * Access BleLayer mState through function (project-chip#31660) * Restyled by clang-format --------- Co-authored-by: Restyled.io <[email protected]>
Fixes #31660, Implement Non-Concurrent Spec Change #8728 in the SDK.
This change now sends the ConnectNetworkResponse(Success) on the commissioning channel before closing it and enabling the operation channel as required by the https://github.com/CHIP-Specifications/connectedhomeip-spec/pull/8728 spec change.
This changes the commissioner and Linux Raspberry Pi lighting app commissionee. The Non-concurrent mode in lighting app requires examples/lighting-app/linux/include/CHIPProjectAppConfig.h to be modified as follows to disable concurrent connection mode.
#define CHIP_DEVICE_CONFIG_SUPPORTS_CONCURRENT_CONNECTION 0
This has been tested with the
CHIP_DEVICE_CONFIG_SUPPORTS_CONCURRENT_CONNECTION
set to zero and one, the passing test logs are attached.chip_output_concurrent_mode.txt
light-app-concurrent.txt
light-app-non-concurrent.txt
chip_output_non-concurrent_mode.txt