Do not want to suspend UART operation on low_power ot_cli demo

I am running on openthread demo: ot_cli on its low power mode by building with low_power snippet.

As document says, it will automatically suspend UART operation when low power ot_cli device becomes attached to Thread Router.

But I don't want it to happen, I stiil need uart console to do some operations even it attached to Thread Router, what should I do?

Parents
  • Hi, 

    In the sample's source files under src/low_power.c, you can remove part of the code responsible for suspending the console:

    const struct device *cons = DEVICE_DT_GET(DT_CHOSEN(zephyr_console));
    
    if (!device_is_ready(cons)) {
        return;
    }
    
    pm_device_action_run(cons, PM_DEVICE_ACTION_SUSPEND);

    We are currently understaffed due to the summer vacation period, so delayed replies must be expected. I am sorry about any inconvenience this might cause.

    Regards,
    Amanda H.

Reply
  • Hi, 

    In the sample's source files under src/low_power.c, you can remove part of the code responsible for suspending the console:

    const struct device *cons = DEVICE_DT_GET(DT_CHOSEN(zephyr_console));
    
    if (!device_is_ready(cons)) {
        return;
    }
    
    pm_device_action_run(cons, PM_DEVICE_ACTION_SUSPEND);

    We are currently understaffed due to the summer vacation period, so delayed replies must be expected. I am sorry about any inconvenience this might cause.

    Regards,
    Amanda H.

Children
Related