Skip to content

Commit faa12a6

Browse files
Pull request project-chip#1639: Pull request project-chip#1608: Cherry-pick:Adjust the default discovery timeout when BLE extend announcement is enabled. (project-chip#32300)
Merge in WMN_TOOLS/matter from cherry-pick/default_ble_discovery to RC_2.3.0-1.3-alpha.3 Squashed commit of the following: commit 20312119b856eacabcde4beec9703a8dbb880957 Author: Junior Martinez <Junior.Martinez@silabs.com> Date: Tue Mar 5 20:39:44 2024 +0000 Pull request project-chip#1608: Cherry-pick:Adjust the default discovery timeout when BLE extend announcement is enabled. (project-chip#32300) Merge in WMN_TOOLS/matter from cherry-pick/ble_extend_adjustment_discovery_timeout to RC_2.3.0-1.3 Squashed commit of the following: commit 5bcef0704cf5b2c29657f0cd433260fab599c502 Author: Junior Martinez <67972863+jmartinez-silabs@users.noreply.github.com> Date: Mon Feb 26 08:53:11 2024 -0500 Adjust the default discovery timeout when BLE extend announcement is enabled. (project-chip#32300) * add build arg to enable BLE extended advertisement feature * Set a increased based value for the Discovery timeout when BLE extended advertising is set
1 parent 213496e commit faa12a6

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

src/include/platform/CHIPDeviceConfig.h

+12-1
Original file line numberDiff line numberDiff line change
@@ -715,8 +715,19 @@ static_assert(CHIP_DEVICE_CONFIG_BLE_EXT_ADVERTISING_INTERVAL_MIN < CHIP_DEVICE_
715715
* Time in seconds that a factory new device will advertise commissionable node discovery.
716716
*/
717717
#ifndef CHIP_DEVICE_CONFIG_DISCOVERY_TIMEOUT_SECS
718+
#if CHIP_DEVICE_CONFIG_BLE_EXT_ADVERTISING
719+
/**
720+
* By default, the extended announcement, when enabled, starts its extended advertising 15 mins
721+
* after the standard slow advertisement. Time at which the default discovery time would close the
722+
* commissioning window and stop the BLE.
723+
* Therefore, when CHIP_DEVICE_CONFIG_BLE_EXT_ADVERTISING is enabled bump the default Discovery timeout
724+
* to the maximum allowed by the spec. 48h.
725+
*/
726+
#define CHIP_DEVICE_CONFIG_DISCOVERY_TIMEOUT_SECS (60 * 60 * 48)
727+
#else
718728
#define CHIP_DEVICE_CONFIG_DISCOVERY_TIMEOUT_SECS (15 * 60)
719-
#endif
729+
#endif // CHIP_DEVICE_CONFIG_BLE_EXT_ADVERTISING
730+
#endif // CHIP_DEVICE_CONFIG_DISCOVERY_TIMEOUT_SECS
720731

721732
/**
722733
* CHIP_DEVICE_CONFIG_MAX_DISCOVERED_NODES

src/platform/silabs/CHIPDevicePlatformConfig.h

+2
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@
140140

141141
#define CHIP_DEVICE_CONFIG_MAX_EVENT_QUEUE_SIZE 25
142142

143+
#define CHIP_DEVICE_CONFIG_BLE_EXT_ADVERTISING SL_MATTER_BLE_EXTENDED_ADV
144+
143145
/*
144146
ICD Configuration Defines
145147
*/

third_party/silabs/efr32_sdk.gni

+4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ declare_args() {
4646
# Enable Segger System View
4747
use_system_view = false
4848

49+
# Enable the BLE extended advertisement
50+
sl_matter_ble_extended_adv = false
51+
4952
# ICD Openthread Configuration flags
5053
sl_ot_idle_interval_ms = 15000 # 15s Idle Intervals
5154
sl_ot_active_interval_ms = 200 # 200ms Active Intervals
@@ -300,6 +303,7 @@ template("efr32_sdk") {
300303
"SL_RAIL_LIB_MULTIPROTOCOL_SUPPORT=1",
301304
"SL_RAIL_UTIL_PA_CONFIG_HEADER=<sl_rail_util_pa_config.h>",
302305
"RADIO_CONFIG_DMP_SUPPORT=1",
306+
"SL_MATTER_BLE_EXTENDED_ADV=${sl_matter_ble_extended_adv}",
303307

304308
#"__STACK_SIZE=0",
305309
]

0 commit comments

Comments
 (0)