espressif / ESP8266_RTOS_SDK

Latest ESP8266 SDK based on FreeRTOS, esp-idf style.
http://bbs.espressif.com
Apache License 2.0
3.3k stars 1.56k forks source link

Can not use light sleep function with sdk release\v2.x.x #418

Closed nghiaquy1991 closed 5 years ago

nghiaquy1991 commented 5 years ago

Environment

Problem Description

I want to use force light-sleep function for my MQTT application. I have a timer, when it is timeout. I will set device to force light sleep, after a few section, I will wakeup device by an external INT.

Actual Behavior

  1. After call wifi_fpm_set_wakeup_cb(wakeup_callback); the current still >75 mA --> device is not in light sleep.
  2. Change wakeup pin from low to high. The code implement function gpio_intr_handler(), so the function wakeup_callback will never run.

Dear Esspressif team, Please help me fix this issue. Thanks

donghengqaz commented 5 years ago

Could any low-power example can work ?

donghengqaz commented 5 years ago

I know a little low power management, so I may cost much time.

nghiaquy1991 commented 5 years ago

Dear donghengqaz, "Could any low-power example can work ?" No, I trying but no one can work. "I know a little low power management, so I may cost much time." I understand, I am still waiting for your solution.

donghengqaz commented 5 years ago

Please @Junhao-Espressif , he masters at low-power management, and I am asked to release the v3.1 SDK, so I can’t reply you right now.

FayeY commented 5 years ago

Would you like to use our latest V3.0.1 for further development?

nghiaquy1991 commented 5 years ago

Hi FayeY, When I use wifi_set_sleep_type(LIGHT_SLEEP); My current consumption of ESP8266 diagram look like: current My Avg current is about 27 mA. Base on issue #290 I guess that I can not improve this result with v3.0.0 So, I am still base on v2.x.x

Does the latest V3.0.1 have a better power consumption in light sleep?

nemonote01 commented 5 years ago

Hi @nghiaquy1991

Could you try with master?

We will release V3.1 very soon.

FayeY commented 5 years ago

We have pre-released the V3.1 RC1 which reduced the power consumption, would you like to have a try? Thanks.

nghiaquy1991 commented 5 years ago

Thanks you so much.

I will try and report again.