Closed nghiaquy1991 closed 5 years ago
Could any low-power example can work ?
I know a little low power management, so I may cost much time.
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.
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.
Would you like to use our latest V3.0.1 for further development?
Hi FayeY,
When I use wifi_set_sleep_type(LIGHT_SLEEP);
My current consumption of ESP8266 diagram look like:
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?
Hi @nghiaquy1991
Could you try with master?
We will release V3.1 very soon.
We have pre-released the V3.1 RC1 which reduced the power consumption, would you like to have a try? Thanks.
Thanks you so much.
I will try and report again.
Environment
git rev-parse --short HEAD
to get the commit id.):f07915833fe22cf86b6c10f17a88500c162af9c4
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.
INT timer void sleep_timer_callback (xTimerHandle xTimer) { GPIO_ConfigTypeDef io_conf; wifi_station_disconnect(); wifi_set_opmode(NULL_MODE); wifi_fpm_set_sleep_type(LIGHT_SLEEP_T); wifi_fpm_open(); // Init wakeup pin io_conf.GPIO_IntrType = GPIO_PIN_INTR_DISABLE; io_conf.GPIO_Mode = GPIO_Mode_Input; io_conf.GPIO_Pin = WAKEUP_PIN_BIT; io_conf.GPIO_Pullup = GPIO_PullUp_DIS; gpio_config(&io_conf); wifi_enable_gpio_wakeup(WAKEUP_PIN, GPIO_PIN_INTR_HILEVEL); wifi_fpm_set_wakeup_cb(wakeup_callback); wifi_fpm_do_sleep(0xFFFFFFFF); }
Wakeup callback static void wakeup_callback (void) { wifi_fpm_close(); wifi_set_opmode(STATION_MODE); wifi_station_connect(); } But I also use another pin for INT button. void IRAM_ATTR gpio_intr_handler(void) { }
Expected Behavior
Actual Behavior
Dear Esspressif team, Please help me fix this issue. Thanks