Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

Disabling mesh to get low power consumption

Hi,

Iam using sensor_client example from nrf 5 mesh sdk and trying to reduce its power consumption by turning off mesh totally when it sleeps

I have also referred to this previous cases: nrf_mesh_disable() function changed since SDK for Mesh V3.1.0? - Nordic Q&A - Nordic DevZone - Nordic DevZone (nordicsemi.com)

Low power Mesh node based on Lightswitch example by using proxy_stop() and mesh_disable() - Nordic Q&A - Nordic DevZone - Nordic DevZone (nordicsemi.com)

I have implemented the sam

int main(void)
{
    initialize();
    start();
    
          uint32_t retval = proxy_stop();

          if (retval == NRF_SUCCESS)
          {
                  //scanner_disable(); // not needed
                  retval = nrf_mesh_disable();
          }
          __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "Disabling mesh: status: %d\n", retval);


    for (;;)
    {
        (void)sd_app_evt_wait();
    }
}
e

When i run this program after provisioning the device, it throws Mesh assert at 0x0002D9CC

Is there anything changed to disable mesh after that??

Parents
  • Hi, 

    update: I tried calling it in a handler and also switched to light_switch_client example, now it works both disabling and enabling mesh, but the current consumption is still avg.2.5mA when disabled.

    Do i need to disable anything further to reduce consumption??

    Thanks.

  • Hi Vignesh R,

    It's great to know you have found a solution to your problem.

    Regarding the 2.5mA current drawn, some quick things to check are:

    - Did the device enter sleep mode yet?
    - Is logging/debugging still enabled?
    - Is the setup measuring the current for the whole board, not just the nRF chip?

    Since that topic would be different from the original intent of this thread, I must ask that you open a new Q&A for any further follow-up/support request.
    As for this topic, it would also help the community if you could quickly write down what was wrong that made nrf_mesh_disable() not work.

    Best regards,

    Hieu

Reply
  • Hi Vignesh R,

    It's great to know you have found a solution to your problem.

    Regarding the 2.5mA current drawn, some quick things to check are:

    - Did the device enter sleep mode yet?
    - Is logging/debugging still enabled?
    - Is the setup measuring the current for the whole board, not just the nRF chip?

    Since that topic would be different from the original intent of this thread, I must ask that you open a new Q&A for any further follow-up/support request.
    As for this topic, it would also help the community if you could quickly write down what was wrong that made nrf_mesh_disable() not work.

    Best regards,

    Hieu

Children
No Data
Related