CAF: Simple Management Protocol module

The simple management protocol module of the Common Application Framework (CAF) allows to perform the device firmware upgrade (DFU) over Bluetooth LE.

Configuration

To use the module, you must enable the following Kconfig options:

Implementation details

During the initialization, the module registers the SMP Bluetooth service, which allows to perform DFU over Bluetooth LE.

The module registers the upload_confirm() callback that is used to submit ble_smp_transfer_event.

The application user must not perform more than one firmware upgrade at a time. The modification of the data by multiple application modules can result in a broken image that is going to be rejected by the bootloader.

The module periodically submits ble_smp_transfer_event while the image is being uploaded.

You can perform the DFU using for example the nRF Connect for Mobile application. The DFU button appears in the tab with the connected Bluetooth devices. After pressing the button, you can select the *.bin file that is to be used for the firmware update.

Note

The SMP firmware update file is generated as zephyr/app_update.bin in the build directory when building your application for configuration with the simple management protocol module enabled.