This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf9160 FOTA over BT SMP

Hi Iam using NCS version 1.5.0 and DK version 0.15.0

Is it even possible to perform FOTA over SMP BT on NRF9160?I am using 840 as my controller and normal ble functionalities are working fine.if so is there any example application?

Thanks in advance

Parents
  • Hello!

    This should be possible. I suggest that you try out the Zephyr SMP server example, but make sure to make the necessary changes so that the nRF9160 is supported as BT host. Some additional changes to the prj.conf may be required for this to work, so if you face any issues you can try the following configuration, which is confirmed to work with the nRF52840:

    CONFIG_BT_L2CAP_TX_MTU=252
    CONFIG_BT_L2CAP_RX_MTU=252
    CONFIG_BT_RX_BUF_LEN=260
    # Add the immutable bootloader
    CONFIG_SECURE_BOOT=y
    # Add MCUBoot as second-stage BL
    CONFIG_BOOTLOADER_MCUBOOT=y
    # Add MCUMGR for DFU over BLE
    CONFIG_MCUMGR=y
    CONFIG_MCUMGR_CMD_OS_MGMT=y
    CONFIG_MCUMGR_CMD_IMG_MGMT=y
    CONFIG_MCUMGR_SMP_BT=y
    # TODO: remove this, only for debug
    CONFIG_MCUMGR_SMP_BT_AUTHEN=n


    Please notify me of you face any problems and good luck!

    Best regards,
    Carl Richard

Reply
  • Hello!

    This should be possible. I suggest that you try out the Zephyr SMP server example, but make sure to make the necessary changes so that the nRF9160 is supported as BT host. Some additional changes to the prj.conf may be required for this to work, so if you face any issues you can try the following configuration, which is confirmed to work with the nRF52840:

    CONFIG_BT_L2CAP_TX_MTU=252
    CONFIG_BT_L2CAP_RX_MTU=252
    CONFIG_BT_RX_BUF_LEN=260
    # Add the immutable bootloader
    CONFIG_SECURE_BOOT=y
    # Add MCUBoot as second-stage BL
    CONFIG_BOOTLOADER_MCUBOOT=y
    # Add MCUMGR for DFU over BLE
    CONFIG_MCUMGR=y
    CONFIG_MCUMGR_CMD_OS_MGMT=y
    CONFIG_MCUMGR_CMD_IMG_MGMT=y
    CONFIG_MCUMGR_SMP_BT=y
    # TODO: remove this, only for debug
    CONFIG_MCUMGR_SMP_BT_AUTHEN=n


    Please notify me of you face any problems and good luck!

    Best regards,
    Carl Richard

Children
No Data
Related