blob: a0ce398fbbaee6a5f52d4f9d6688679d8f8c4db5 [file] [log] [blame]
# Copyright Runtime.io 2018. All rights reserved.
# Copyright Nordic Semiconductor ASA 2020. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
menuconfig MCUMGR_SMP_BT
bool "Bluetooth mcumgr SMP transport"
select BT
select BT_PERIPHERAL
select BT_GATT_DYNAMIC_DB
help
Enables handling of SMP commands received over Bluetooth.
if MCUMGR_SMP_BT
config MCUMGR_SMP_REASSEMBLY_BT
bool "Reassemble packets in Bluetooth SMP transport"
select MCUMGR_SMP_REASSEMBLY
help
When enabled, the SMP BT transport will buffer and reassemble received
packet fragments before passing it for further processing.
config MCUMGR_SMP_BT_AUTHEN
bool "Authenticated requirement for Bluetooth mcumgr SMP transport"
select BT_SMP
default y
help
Enables encrypted and authenticated connection requirement to
Bluetooth SMP transport.
config MCUMGR_SMP_BT_CONN_PARAM_CONTROL
bool "Request specific connection parameters for SMP packet exchange"
depends on SYSTEM_WORKQUEUE_PRIORITY < 0
depends on BT_GAP_PERIPHERAL_PREF_PARAMS
help
Enables support for requesting specific connection parameters when
SMP commands are handled. This option allows to speed up the command
exchange process.
Its recommended to enable this if SMP is used for DFU.
if MCUMGR_SMP_BT_CONN_PARAM_CONTROL
config MCUMGR_SMP_BT_CONN_PARAM_CONTROL_MIN_INT
int "Minimum connection interval for SMP packet exchange"
default 6
range 6 3200
help
Minimum connection interval in 1.25ms units used during the exchange of SMP packets.
config MCUMGR_SMP_BT_CONN_PARAM_CONTROL_MAX_INT
int "Maximum connection interval for SMP packet exchange"
default 9
range MCUMGR_SMP_BT_CONN_PARAM_CONTROL_MIN_INT 3200
help
Maximum connection interval in 1.25ms units used during the exchange of SMP packets.
config MCUMGR_SMP_BT_CONN_PARAM_CONTROL_LATENCY
int "Peripheral latency for SMP packet exchange"
default 0
range 0 499
help
Peripheral latency in Connection Intervals used during the exchange of SMP packets.
config MCUMGR_SMP_BT_CONN_PARAM_CONTROL_TIMEOUT
int "Supervision timeout for SMP packet exchange"
default 42
range 10 3200
help
Supervision timeout in 10ms used during the exchange of SMP packets.
config MCUMGR_SMP_BT_CONN_PARAM_CONTROL_RESTORE_TIME
int "Connection parameters restore time in milliseconds"
default 5000
range 1000 65535
help
The value is a time of inactivity on the SMP characteristic after which
connection parameters are restored to peripheral preferred values
(BT_GAP_PERIPHERAL_PREF_PARAMS).
config MCUMGR_SMP_BT_CONN_PARAM_CONTROL_RETRY_TIME
int "Connection parameters update retry time in milliseconds"
default 1000
range 1 5000
help
In case connection parameters update fails due to an error, this
option specifies the time of the next update attempt.
endif # MCUMGR_SMP_BT_CONN_PARAM_CONTROL
endif # MCUMGR_SMP_BT