MODEM_SLEEP_T and system idle task
-
- Posts: 4
- Joined: Thu Nov 16, 2017 5:01 am
MODEM_SLEEP_T and system idle task
Postby andrewtinkers » Thu Nov 16, 2017 5:06 am
In the documentation, MODEM_SLEEP_T seems like a great way to keep the wifi connection alive, yet still saving power.
However, I see some indeterminate behavior:
Most of the time, after a http request, I see the modem turn off, and the current draw drops from ~60mA to ~15mA within a second. And then there are short keep-alive connections later. This is expected.
However, sometimes after the http request, the modem stays on for 5 seconds, 10 seconds, even minutes. What determines this? Is it because we haven't hit a system idle task yet? If so, is there a way to debug which task is executing and preventing the system idle task?
Thank you!
However, I see some indeterminate behavior:
Most of the time, after a http request, I see the modem turn off, and the current draw drops from ~60mA to ~15mA within a second. And then there are short keep-alive connections later. This is expected.
However, sometimes after the http request, the modem stays on for 5 seconds, 10 seconds, even minutes. What determines this? Is it because we haven't hit a system idle task yet? If so, is there a way to debug which task is executing and preventing the system idle task?
Thank you!
-
- Posts: 4
- Joined: Thu Nov 16, 2017 5:01 am
Re: MODEM_SLEEP_T and system idle task
Postby andrewtinkers » Fri Nov 17, 2017 1:27 am
I see it go into DTIM mode later actually. I attached a oscilloscope capture. There is a steady modem on period (RX I guess?) and then later it goes into DTIM, which is characterized by 15mA base, with 60mA spikes at a regular interval. I'm trying to figure out what the long 60mA bit is. This tail is always after a successful http transaction. And sometimes it is 500ms long, sometimes it can be as long as 10 seconds. I'm trying to figure out why, and how to make it consistent.
- Attachments
-
- long.png (8.74 KiB) Viewed 8695 times
-
- Posts: 4
- Joined: Thu Nov 16, 2017 5:01 am
Re: MODEM_SLEEP_T and system idle task
Postby andrewtinkers » Fri Nov 17, 2017 10:19 am
Or, if it is really due to waiting for DTIM, is there a way to check, or to set a timeout? Or is this all in the sdk, and not accessible by developers?
Who is online
Users browsing this forum: No registered users and 120 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.