Skip to content

Commit c27214d

Browse files
committed
applications: nrf_desktop: enable encryption for mcumgr smp service
All nRF Desktop configurations with the DFU over MCUmgr support now require encryption for operations on the Bluetooth SMP service. Unpaired Bluetooth peers should now perform the Bluetooth pairing procedure before the DFU operation. Ref: NCSDK-29061 Signed-off-by: Kamil Piszczek <[email protected]>
1 parent 85dfab5 commit c27214d

File tree

11 files changed

+15
-9
lines changed

11 files changed

+15
-9
lines changed

applications/nrf_desktop/bootloader_dfu.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@ The update image can also be transferred in the background through one of the fo
317317

318318
The `nRF Connect Device Manager`_ application transfers the image update files over the Simple Management Protocol (SMP).
319319

320+
.. note::
321+
If your DFU target is not paired through Bluetooth with your Android device, the DFU procedure automatically triggers the pairing procedure.
322+
The nRF Desktop configurations with the DFU support over SMP require encryption for operations on the Bluetooth GATT SMP service (see the :kconfig:option:`CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_ENCRYPT` Kconfig option).
323+
320324
To perform DFU using the `nRF Connect Device Manager`_ mobile app, complete the following steps:
321325

322326
.. tabs::

applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_fast_pair.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ CONFIG_LED_PWM=y
113113

114114
# Enable MCUmgr Bluetooth transport and increase Bluetooth buffers to speed up DFU image transfer.
115115
CONFIG_MCUMGR_TRANSPORT_BT=y
116-
CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW=y
116+
CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_ENCRYPT=y
117117
CONFIG_MCUMGR_GRP_IMG_VERSION_CMP_USE_BUILD_NUMBER=y
118118

119119
CONFIG_IMG_MANAGER=y

applications/nrf_desktop/configuration/nrf52840dk_nrf52840/prj_mcuboot_smp.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ CONFIG_LED_PWM=y
9999

100100
# Enable MCUmgr Bluetooth transport and increase Bluetooth buffers to speed up DFU image transfer.
101101
CONFIG_MCUMGR_TRANSPORT_BT=y
102-
CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW=y
102+
CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_ENCRYPT=y
103103
CONFIG_MCUMGR_GRP_IMG_VERSION_CMP_USE_BUILD_NUMBER=y
104104

105105
CONFIG_BT_L2CAP_TX_MTU=260

applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj_fast_pair.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ CONFIG_SPI_NRFX_RAM_BUFFER_SIZE=8
155155

156156
# Enable MCUmgr Bluetooth transport and increase Bluetooth buffers to speed up DFU image transfer.
157157
CONFIG_MCUMGR_TRANSPORT_BT=y
158-
CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW=y
158+
CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_ENCRYPT=y
159159
CONFIG_MCUMGR_GRP_IMG_VERSION_CMP_USE_BUILD_NUMBER=y
160160

161161
CONFIG_IMG_MANAGER=y

applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj_mcuboot_smp.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ CONFIG_ZCBOR=y
141141
CONFIG_CRC=y
142142
CONFIG_MCUMGR=y
143143
CONFIG_MCUMGR_TRANSPORT_BT=y
144-
CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW=y
144+
CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_ENCRYPT=y
145145
CONFIG_MCUMGR_GRP_IMG_VERSION_CMP_USE_BUILD_NUMBER=y
146146

147147
CONFIG_MCUMGR_GRP_IMG=y

applications/nrf_desktop/configuration/nrf52840gmouse_nrf52840/prj_release_fast_pair.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ CONFIG_SPI_NRFX_RAM_BUFFER_SIZE=8
149149

150150
# Enable MCUmgr Bluetooth transport and increase Bluetooth buffers to speed up DFU image transfer.
151151
CONFIG_MCUMGR_TRANSPORT_BT=y
152-
CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW=y
152+
CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_ENCRYPT=y
153153
CONFIG_MCUMGR_GRP_IMG_VERSION_CMP_USE_BUILD_NUMBER=y
154154

155155
CONFIG_IMG_MANAGER=y

applications/nrf_desktop/configuration/nrf52kbd_nrf52832/prj_release_fast_pair.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
112112

113113
# Enable MCUmgr Bluetooth transport and increase Bluetooth buffers to speed up DFU image transfer.
114114
CONFIG_MCUMGR_TRANSPORT_BT=y
115-
CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW=y
115+
CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_ENCRYPT=y
116116
CONFIG_MCUMGR_GRP_IMG_VERSION_CMP_USE_BUILD_NUMBER=y
117117

118118
CONFIG_IMG_MANAGER=y

applications/nrf_desktop/configuration/nrf54h20dk_nrf54h20_cpuapp/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=1024
117117
# Enable MCUmgr Bluetooth transport
118118
CONFIG_DESKTOP_DFU_MCUMGR_ENABLE=y
119119
CONFIG_MCUMGR_TRANSPORT_BT=y
120-
CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW=y
120+
CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_ENCRYPT=y
121121

122122
# Allow for large Bluetooth data packets.
123123
CONFIG_BT_L2CAP_TX_MTU=498

applications/nrf_desktop/configuration/nrf54h20dk_nrf54h20_cpuapp/prj_release.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ CONFIG_UART_CONSOLE=n
9595
# Enable MCUmgr Bluetooth transport
9696
CONFIG_DESKTOP_DFU_MCUMGR_ENABLE=y
9797
CONFIG_MCUMGR_TRANSPORT_BT=y
98-
CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW=y
98+
CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_ENCRYPT=y
9999

100100
# Allow for large Bluetooth data packets.
101101
CONFIG_BT_L2CAP_TX_MTU=498

applications/nrf_desktop/configuration/nrf54l15dk_nrf54l15_cpuapp/prj_fast_pair.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ CONFIG_LED_PWM=y
102102

103103
# Enable MCUmgr Bluetooth transport and increase Bluetooth buffers to speed up DFU image transfer.
104104
CONFIG_MCUMGR_TRANSPORT_BT=y
105-
CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW=y
105+
CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_ENCRYPT=y
106106
CONFIG_MCUMGR_GRP_IMG_VERSION_CMP_USE_BUILD_NUMBER=y
107107

108108
CONFIG_IMG_MANAGER=y

0 commit comments

Comments
 (0)