ESP8266 light sleep with delay...

snichols
Posts: 1
Joined: Fri Mar 03, 2017 2:37 am

ESP8266 light sleep with delay...

Postby snichols » Fri Mar 03, 2017 2:50 am

Hi there!

I'm using the force sleep API to have my ESP8266 go into standby mode for a period of time. I'm seeing weird current draw behavior, though.

  • If I set the time period to 0xFFFFFFF (max time) then I'm getting 0.5ma of current draw but can only wake based on external GPIO.
  • If I set the time period to, say, 5000ms then the current draw sticks at 15ma until the timer expires then goes back up to 70ma.
  • If I set the time period to 100ms then the current draw goes between 0.5ma and 15ma -- averaging around 4ma with my slow multimeter.
  • If I set the time period to 10ms then the current draw sticks at 70ma.

What I'd like to be able to do is use forced light sleep to put the chip into standby mode then wake up periodically to do other work without paying the cost of a deep sleep reboot. Seems that this should be possible. Any ideas?

I'm using SDK 2.0.0(656edbf).

Force sleep code is lifted directly from the SDK documentation with timer values changed to test various current draw measures.

Thanks in advance for any help on this.

ESP_Alfred
Posts: 56
Joined: Mon Nov 10, 2014 7:31 pm

Re: ESP8266 light sleep with delay...

Postby ESP_Alfred » Fri May 26, 2017 4:58 pm

hi, I had test your issue, It's working normally.
Notice:
If you set light-modem, make sure all timers are closed. refer to 《ESP8266 Non-OS SDK API Reference》.

Who is online

Users browsing this forum: No registered users and 64 guests