-->
Page 1 of 1

Wake up from light sleep Feather Huzzah

PostPosted: Tue Mar 15, 2016 1:30 pm
by Mattia Durli
Hello, I've given up with deep sleep, because it works for some times then it hangs on reset (gpio 0 and 2 up, 15 down, 16 to RST), as it is reported in many other forums.

I've made modem sleep work, it activates and deactivates, but it passes from 76mA to 22mA only:

WiFi.disconnect();
WiFi.mode(WIFI_OFF);
delay(1);
WiFi.forceSleepBegin();
delay(15000);

when in delay stays at 22mA and then loops.

I've managed to enter light sleep, and it goes from 76mA to 7mA, but I'm unable to wake it up:

wifi_fpm_set_sleep_type(LIGHT_SLEEP_T);
wifi_fpm_open(); // Enables force sleep
Serial.println("A");
wifi_fpm_do_sleep(0xFFFFFFF); // Sleep for longest possible time
delay(1);
Serial.println("A");

it never gets to "A", and it stays at 7mA

Doing any combination of wait with both the wifi_fpm_do_sleep argument or with the delay:

wifi_fpm_do_sleep(10000000); // Sleep for longest possible time
delay(10000);
Serial.println("A");

it gets to print "A", but never goes to 7mA, always 76mA.

Any suggestion?
At this point going to 7mA and back would be great.

Thanks!

Re: Wake up from light sleep Feather Huzzah

PostPosted: Fri Jul 22, 2016 3:16 pm
by Joe Job
Slowly losing faith with the ESP, I have implemented two devices with light sleep and brand new batteries were both dead within hours.

Re: Wake up from light sleep Feather Huzzah

PostPosted: Fri Jul 22, 2016 4:25 pm
by schufti
no problems with deep sleep on ESP-01 here ...

for light sleep, maybe this will be informative:

https://github.com/esp8266/Arduino/issues/1381