This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

FOTA Service Abstraction

SDK: NCS 1.8.0

Based on: Peripheral LBS example

Central: Mobile (iPhone)

Peripheral: nRF52832

Hello, 

We are attempting to abstract the FOTA service within our custom application. We have successfully performed a FOTA using the nRF Connect Mobile App after integrating the "smp_server" sample.

Is there a way to trigger a reset into the MCUBoot bootloader, without using the FOTA service, within our own application code? This was previously possible using the nRF5 SDK, we reset the device into bootloader mode and could see then see the device advertise as "DFUTarg". Is this possible using nRF Connect SDK?

Another thing to note is that we'd like the FOTA service not to be included in our GATT table when the device is not in MCUBoot mode.

Thank you,

Tom

Parents
  • Hi Tom,

    There is no Bluetooth transport in the MCUboot bootloader, so with the nRF Connect SDK the application is responsible for transport. Therefor, it must implement the FOTA service as demonstrated by the SMP Server Sample. With the nRF5 SDK this was different, as the whole DFU process, including transport, was handled by the bootloader. This is not supported with the nRF Connect SDK.

    Einar

  • Hi Einar,

    Is there a way for our application to be notified if there is a write to the FOTA service? After looking at "smp_bt.c" it seems as the code is self-contained.

    We would like to control when an OTA process can occur within our application code and terminate the active connection if certain states haven't been met. 

    I see that there is a define "CONFIG_MCUMGR_SMP_BT_AUTHEN" to restrict when the FOTA service is written to but we are not authenticating the connection.

    We would also like to avoid modifying any zephyr code.

    Thank you,

    Tom

  • Hi Tom,

    You can get some callbacks by registering them using img_mgmt_register_callbacks(). See this thread.

    Einar

Reply Children
No Data
Related