Need to reduce wifi startup time and power consumption
Posted: Tue Jan 30, 2018 1:38 am
I realize that there are similar topics on the forum but not any real solutions that I've discovered - was really hoping the folks at espressif would chime in with guidance/direction/future capability...
My goal is straightfoward: power on, grab some data, log to cloud, go to sleep, repeat. Powered by battery that lasts awhile.
Ideally I would like to be able to interact with the esp when desired through ble or network but I am focusing on step 1 first.
Right now I'm running the loop then going into deep sleep. The loop is taking 4-6 seconds (wifi connection time seems to vary a bit) with 99% of it consumed with startup and wifi connection. The wifi code is pretty generic so I don't think it is causing the issue
Due to this extended time and the power consumption of the chip, my battery is not lasting very long. I realize that I could probably play with my AP, lower chip speed, etc and save a bit but if I can't take a significant chunk of time out of the wifi connect process, a battery powered iot device using the esp32 is going to be very difficult. Are there any areas I can focus on where I might be able to connect and get ip much faster? Is there anything in near term development that addresses this?
My goal is straightfoward: power on, grab some data, log to cloud, go to sleep, repeat. Powered by battery that lasts awhile.
Ideally I would like to be able to interact with the esp when desired through ble or network but I am focusing on step 1 first.
Right now I'm running the loop then going into deep sleep. The loop is taking 4-6 seconds (wifi connection time seems to vary a bit) with 99% of it consumed with startup and wifi connection. The wifi code is pretty generic so I don't think it is causing the issue
Due to this extended time and the power consumption of the chip, my battery is not lasting very long. I realize that I could probably play with my AP, lower chip speed, etc and save a bit but if I can't take a significant chunk of time out of the wifi connect process, a battery powered iot device using the esp32 is going to be very difficult. Are there any areas I can focus on where I might be able to connect and get ip much faster? Is there anything in near term development that addresses this?