BLE Low Power Issue Conflicting with SMP Service for DFU

Hi, 

I am working on a project with nrf52832 and LIS3DH for a beacon. 

I have added the low power feature into my application to go to standby mode in case of inactivity for a set period.

but when i add the following OTA Kconfig define in my project it stops entering the low power mode and also the DFU also doesn't work.   

CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y
I tested it both ways :
  • If I remove the low power from my project the OTA works fine.
  • If I remove the DFU header the low power works fine.

SDK Version: ncs 2.9.0 (same toolchain)

Following is the Kconfig file i add to enable the Power Management hooks and the prj.conf file.

Kconfig:

# Copyright (c) 2022 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

menu "Zephyr"
source "Kconfig.zephyr"
endmenu

# module = APP
# module-str = Application
# source "subsys/logging/Kconfig.template.log_config"


config APP_PROVIDE_PM_HOOKS
    bool "Application provides PM hooks"
    default y
    select HAS_PM
-------------------------------------------------------------------------------------------------------

Looking forward to any help in the matter.

Regards,

Salman

Parents Reply Children
  • Hey, 

    Actually I am not debugging it since that would negate the low power and I won't be able to test them both together. 

    What i need to confirm is that does the DFU get effected if the device goes into low power during the connection of exchanging the MCUmgr parameters. 

    Because the DFu starts it tries to read the MCU params and times out and doesn't go into any fault.

    Following is the current usage during the mobile app connected: 

    Whereas this is with a one second apart advertisement:

    Thanks

    Salman 

Related