How to set ESP32 to light sleep mode?

roctwo
Posts: 95
Joined: Mon Nov 28, 2016 3:12 am

How to set ESP32 to light sleep mode?

Postby roctwo » Thu Feb 23, 2017 7:43 am

Hi!
I have seen esp_err_t esp_wifi_set_ps(wifi_ps_type_t type).But it's augument:

Code: Select all

typedef enum {
    WIFI_PS_NONE,    /**< No power save */
    WIFI_PS_MODEM,   /**< Modem power save */
} wifi_ps_type_t;
It seems that no light sleep option.So,how to set ESP32 to light sleep mode?

ESP_Sprite
Posts: 9766
Joined: Thu Nov 26, 2015 4:08 am

Re: How to set ESP32 to light sleep mode?

Postby ESP_Sprite » Thu Feb 23, 2017 7:55 am

At the moment, you can't... it's not really compatible with the way esp-idf works. Later on, we'll add a simple implementation which works similar to the deep sleep API. If we can pull it off, we may also add some code that automatically does light sleep if peripheral use allows it.

roctwo
Posts: 95
Joined: Mon Nov 28, 2016 3:12 am

Re: How to set ESP32 to light sleep mode?

Postby roctwo » Fri Feb 24, 2017 1:19 am

ESP_Sprite wrote:At the moment, you can't... it's not really compatible with the way esp-idf works. Later on, we'll add a simple implementation which works similar to the deep sleep API. If we can pull it off, we may also add some code that automatically does light sleep if peripheral use allows it.
OK ,Thank for your reply.I see.I will wait.

Gerald Hilderink
Posts: 3
Joined: Thu Mar 02, 2017 3:27 pm

Re: How to set ESP32 to light sleep mode?

Postby Gerald Hilderink » Thu Mar 02, 2017 9:45 pm

I would love to see a light sleep mode. It's the last piece I am missing to create truly energy-saving software for the ESP32.

roctwo
Posts: 95
Joined: Mon Nov 28, 2016 3:12 am

Re: How to set ESP32 to light sleep mode?

Postby roctwo » Sat Mar 25, 2017 6:34 am

It has been more than a month since I asked the question, I would like to ask how the progress of light sleep. Our choice of esp32 is largely due to that we saw the characteristics of the "light sleep" on documents.

Jackie_Kilby
Posts: 2
Joined: Thu Jun 01, 2017 12:18 pm

Re: How to set ESP32 to light sleep mode?

Postby Jackie_Kilby » Thu Jun 01, 2017 1:33 pm

What's the process of the ESP32 to support light sleep mode? I also got the light mode from the technical specification document

jones12ax7
Posts: 2
Joined: Tue Aug 22, 2017 3:31 pm

Re: How to set ESP32 to light sleep mode?

Postby jones12ax7 » Tue Aug 22, 2017 4:27 pm

Hello, any news about light-sleep ?

I'm building a low power GPS device and keeping esp32 active just to wait for serial data from gps is very inefficient.

I think that in Deep sleep it could be waken up by serial but reseting the device every second doesn't seem to be a good idea...
I thought about pooling the gps module instead.

Any suggestions?

Who is online

Users browsing this forum: No registered users and 87 guests