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

mesh_stack_init and Low Power

Hello,

I'm working with the nRF5 SDK for Mesh v4.2.0.

During the init phase, I call the function mesh_stack_init()

After doing so, the consumption is on average 2.8 mA, even when doing :

    for (;;)
    {
        nrf_pwr_mgmt_run();
    }

And the MCU is never in idle state.

How to desactivate all the functions initialized by mesh_stack_init() in order to put the MCU in low power state ?

Thank you.

Parents Reply Children
  • Hi Jerome, 


    Could you let me know what made the current dropped down to 33uA ? 

    I did what you suggested and it's true that the CPU was woken up occasionally. I suspect it's the RTC still running and still trigger some interrupt. I need to check with the Mesh team to see if we can turn that off as well. 

    However, one thing you can do to reduce the CPU waking frequency is to remove: 
    rtt_input_enable(app_rtt_input_handler, RTT_INPUT_POLL_PERIOD_MS); inside start() function.

    I found that it's the main reason the CPU stay awake. The default period is 100ms. 

    In addition, if the device is not provisioned, you can call mesh_provisionee_prov_listen_stop() before you disable mesh. But I would suggest to test after the device provisioned. 

    With those modification I'm seeing around 5uA. (CPU woken up once a second(estimated), I will need to look into what causes this).

    I attached my binary here. You press button 2 (P0.14) on the DK to disable mesh and press button 3 (P0.15) to enable mesh. 

    0488.light_switch_server_nrf52832_xxAA_s132_7.0.1.hex

Related