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

Rigado BMD-340 - NRF52840 BLE + OpenThread sleep mode - current consumption

We are developping an application using an NRF52840, Based on nRF5 SDK for Thread and Zigbee V3.0.0

Running S140 softdevice

We are using BLE advertizements and Openthread communication.

In the main loop, there are 2 lines for OpenThread communication

thread_instance_init(); for init (once)

thread_process(); (in mainloop)

Monitoring the power consumption in sleep mode, the Openthread communication keeps the current around 590uA.

If I disable the init and process line for thread, the current drops to 90uA.

Is it possible to turn on and off Openthread in a controlled way?

How can this be done?

Using nRF5 SDK for Thread and Zigbee V3.0.0.

Parents
  • Hi

    How are you going to sleep mode by the way? You say that you also tried using thread_sleep(); but how have you been going to sleep in the other instances? I dug a bit in the code and found that thread_soft_deinit(); just disables the OpenThread library, and is generally used as part of a deinit function. For example like this (from examples\thread\CLI):

    static void thread_instance_finalize(void)
    {
        bsp_thread_deinit(thread_ot_instance_get());
        thread_soft_deinit();
    }

    Maybe try the sleep and deinit functions as described there to see if that helps.

    Best regards,

    Simon

Reply
  • Hi

    How are you going to sleep mode by the way? You say that you also tried using thread_sleep(); but how have you been going to sleep in the other instances? I dug a bit in the code and found that thread_soft_deinit(); just disables the OpenThread library, and is generally used as part of a deinit function. For example like this (from examples\thread\CLI):

    static void thread_instance_finalize(void)
    {
        bsp_thread_deinit(thread_ot_instance_get());
        thread_soft_deinit();
    }

    Maybe try the sleep and deinit functions as described there to see if that helps.

    Best regards,

    Simon

Children
No Data
Related