|
4 | 4 | # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause |
5 | 5 | # |
6 | 6 |
|
| 7 | +menu "Bridge configuration" |
| 8 | + |
7 | 9 | config BRIDGE_MAX_DYNAMIC_ENDPOINTS_NUMBER |
8 | | - int "Maximum number of dynamic endpoints supported by the Bridge" |
| 10 | + int "Maximum dynamic endpoints" |
9 | 11 | default 16 |
| 12 | + help |
| 13 | + Maximum number of endpoints supported by the bridge. |
10 | 14 |
|
11 | 15 | config BRIDGE_MAX_BRIDGED_DEVICES_NUMBER |
12 | | - int "Maximum number of physical non-Matter devices supported by the Bridge" |
| 16 | + int "Maximum bridged devices" |
13 | 17 | default 16 |
| 18 | + help |
| 19 | + Maximum number of physical non-Matter devices supported by the bridge. |
14 | 20 |
|
15 | 21 | config BRIDGE_MAX_BRIDGED_DEVICES_NUMBER_PER_PROVIDER |
16 | | - int "Maximum number of endpoints paired to the one non-Matter provider device" |
| 22 | + int "Maximum endpoints per provider" |
17 | 23 | default 2 |
| 24 | + help |
| 25 | + Maximum number of endpoints paired to one non-Matter provider device. |
18 | 26 |
|
19 | 27 | config BRIDGE_AGGREGATOR_ENDPOINT_ID |
20 | | - int "Id of an endpoint implementing Aggregator device type functionality" |
| 28 | + int "Aggregator endpoint ID" |
21 | 29 | default 1 |
| 30 | + help |
| 31 | + ID of the endpoint implementing Aggregator device type functionality. |
| 32 | + |
| 33 | +menu "Migration options" |
22 | 34 |
|
23 | 35 | config BRIDGE_MIGRATE_PRE_2_7_0 |
24 | | - bool "Migration of bridged device data stored in old scheme from pre nRF SDK 2.7.0 releases" |
| 36 | + bool "Migrate pre-2.7.0 data" |
| 37 | + help |
| 38 | + Enable migration of bridged device data stored in the old scheme (pre-nRF SDK 2.7.0). |
25 | 39 |
|
26 | 40 | config BRIDGE_MIGRATE_VERSION_1 |
27 | | - bool "Migration of bridged device data stored in version 1 of new scheme" |
| 41 | + bool "Migrate version 1 data" |
28 | 42 | default y |
| 43 | + help |
| 44 | + Enable migration of bridged device data stored in version 1 of the new scheme. |
| 45 | + |
| 46 | +endmenu |
29 | 47 |
|
30 | 48 | if BRIDGED_DEVICE_BT |
31 | 49 |
|
| 50 | +menu "Bluetooth bridge configuration" |
| 51 | + |
32 | 52 | config BRIDGE_BT_RECOVERY_MAX_INTERVAL |
33 | | - int "Maximum time (in s) between recovery attempts when the BLE connection to the bridged device is lost" |
| 53 | + int "Recovery interval (s)" |
34 | 54 | default 300 |
| 55 | + help |
| 56 | + Maximum time (in seconds) between recovery attempts when a Bluetooth LE connection is lost. |
35 | 57 |
|
36 | 58 | config BRIDGE_BT_RECOVERY_SCAN_TIMEOUT_MS |
37 | | - int "Time (in ms) within which the Bridge will try to re-establish a connection to the lost BT LE device" |
| 59 | + int "Recovery scan timeout (ms)" |
38 | 60 | default 2000 |
| 61 | + help |
| 62 | + Time (in milliseconds) to attempt reconnection to a lost Bluetooth LE device. |
39 | 63 |
|
40 | 64 | config BRIDGE_BT_MAX_SCANNED_DEVICES |
41 | | - int "Maximum amount of scanned devices" |
| 65 | + int "Maximum scanned devices" |
42 | 66 | default 16 |
| 67 | + help |
| 68 | + Maximum number of Bluetooth devices that can be scanned at once. |
43 | 69 |
|
44 | 70 | config BRIDGE_BT_SCAN_TIMEOUT_MS |
45 | | - int "Bluetooth scan timeout in milliseconds" |
| 71 | + int "Scan timeout (ms)" |
46 | 72 | default 10000 |
| 73 | + help |
| 74 | + Bluetooth scan timeout in milliseconds. |
47 | 75 |
|
48 | 76 | config BRIDGE_BT_MINIMUM_SECURITY_LEVEL |
49 | | - int "Minimum Bluetooth security level of bridged devices that will be accepted by the bridge device" |
| 77 | + int "Minimum security level" |
50 | 78 | default 2 |
51 | 79 | range 2 4 |
52 | 80 | depends on BT_SMP |
53 | 81 | help |
54 | | - The minimum Bluetooth security level means that the bridged devices using this or a higher level will be |
55 | | - allowed to connect to the bridge. The level cannot be set to a value smaller than 2, as it would mean that |
56 | | - the communication with the connected devices will not be encrypted, what is not considered to be secure. |
| 82 | + The minimum Bluetooth security level means that the bridged devices using this or a higher level will be |
| 83 | + allowed to connect to the bridge. The level cannot be set to a value smaller than 2, as it would mean that |
| 84 | + the communication with the connected devices will not be encrypted, what is not considered to be secure. |
57 | 85 |
|
58 | 86 | config BRIDGE_BT_SCAN_WINDOW |
59 | | - int "Time duration of a central actively scanning for devices within scan interval, it is equal BRIDGE_BT_SCAN_WINDOW*0.625 ms" |
| 87 | + int "Scan window" |
60 | 88 | default 40 if OPENTHREAD # It is necessary to decrease Bluetooth LE activity to leave some radio time to Thread |
61 | 89 | default 48 |
| 90 | + help |
| 91 | + Duration of active scanning per interval (x0.625 ms). |
| 92 | + Default: 40 (25 ms). |
| 93 | + Longer windows improve discovery speed but increase power use. |
62 | 94 |
|
63 | 95 | config BRIDGE_BT_SCAN_INTERVAL |
64 | | - int "Time between consecutive Bluetooth scan windows, it is equal BRIDGE_BT_SCAN_INTERVAL*0.625 ms" |
| 96 | + int "Scan interval" |
65 | 97 | default 160 if OPENTHREAD # It is necessary to decrease Bluetooth LE activity to leave some radio time to Thread |
66 | 98 | default 96 |
| 99 | + help |
| 100 | + Time between consecutive scan windows (x0.625 ms). |
| 101 | + Default: 160 (100 ms). |
| 102 | + Must be ≥ scan window. |
| 103 | + Shorter intervals speed discovery but increase power use. |
67 | 104 |
|
68 | 105 | config BRIDGE_BT_CONNECTION_INTERVAL_MIN |
69 | | - int "It is the minimum duration of time requested by central after the peripheral device should wake up to communicate, it is equal BRIDGE_BT_CONNECTION_INTERVAL_MIN*1.25 ms" |
| 106 | + int "Minimum connection interval" |
70 | 107 | range 6 3200 |
71 | 108 | default 80 if OPENTHREAD # It is necessary to decrease Bluetooth LE activity to leave some radio time to Thread |
72 | 109 | default 24 |
| 110 | + help |
| 111 | + Minimum time between connection events (x1.25 ms). |
| 112 | + Default: 80 (100 ms). |
| 113 | + Shorter intervals reduce latency but increase power consumption. |
73 | 114 |
|
74 | 115 | config BRIDGE_BT_CONNECTION_INTERVAL_MAX |
75 | | - int "It is the maximum duration of time requested by central after the peripheral device should wake up to communicate, it is equal BRIDGE_BT_CONNECTION_INTERVAL_MAX*1.25 ms" |
| 116 | + int "Maximum connection interval" |
76 | 117 | range 6 3200 |
77 | 118 | default 80 if OPENTHREAD # It is necessary to decrease Bluetooth LE activity to leave some radio time to Thread |
78 | 119 | default 40 |
| 120 | + help |
| 121 | + Maximum time between connection events (x1.25 ms). |
| 122 | + Default: 80 (100 ms). |
| 123 | + Must be ≥ minimum interval. |
79 | 124 |
|
80 | 125 | config BRIDGE_BT_CONNECTION_TIMEOUT |
81 | | - int "The time since the last packet was successfully received until the devices consider the connection lost, it is equal BRIDGE_BT_CONNECTION_TIMEOUT cs" |
| 126 | + int "Connection timeout" |
82 | 127 | default 400 |
| 128 | + help |
| 129 | + Time until connection is considered lost (x10 ms). |
| 130 | + Default: 400 (4 sec). |
| 131 | + Must be > (1 + latency) x interval_max x 2. |
83 | 132 |
|
84 | 133 | config BRIDGE_BT_CONNECTION_LATENCY |
85 | | - int "It allows the peripheral to skip waking up for a certain number of connection events if it does not have any data to send" |
| 134 | + int "Connection latency" |
86 | 135 | default 0 |
| 136 | + help |
| 137 | + Number of connection events peripheral can skip when idle. |
| 138 | + Default: 0. |
| 139 | + Higher values save power but increase latency. |
87 | 140 |
|
88 | 141 | config BRIDGE_FORCE_BT_CONNECTION_PARAMS |
89 | | - bool "Determines whether the Matter bridge forces connection parameters or accepts the Bluetooth LE peripheral device selection" |
| 142 | + bool "Force connection parameters" |
90 | 143 | default y |
| 144 | + help |
| 145 | + Enforce bridge-defined connection parameters instead of accepting the peripheral's preferred values. |
| 146 | + Enable for guaranteed timing, disable for peripheral optimization. |
| 147 | + |
| 148 | +endmenu |
91 | 149 |
|
92 | 150 | endif |
| 151 | + |
| 152 | +endmenu |
0 commit comments