esp_wifi_set_ps(WIFI_PS_MODEM), BLE, and light sleep?
Posted: Fri Jan 12, 2018 11:24 pm
Hi all,
In an effort to save power, I am investigating various sleep modes and power saving modes. I've done some testing where I've determined that esp_wifi_set_ps(WIFI_PS_MODEM) does seem to decrease power usage by about 41mA but having BLE enabled keeps it from working. In addition, I've noticed in the documentation that light sleep mode is not compatible with BLE or WiFi, at the moment. So, a few questions:
1. Am I right that esp_wifi_set_ps(WIFI_PS_MODEM) is disabled by using BLE, and is there a way around this?
2. I saw in the documentation (https://esp-idf.readthedocs.io/en/lates ... leep-modes) that light sleep is compatible with WiFi, but that the current API does not support this. Is this still true, and is there a timeline for when light sleep will work with WiFi? Or is there an alternative API that can be used?
3. Is there any documentation for esp_wifi_set_ps(WIFI_PS_MODEM)? Specifically, I am curious if anything else needs to be enabled / disabled, or if there are any consequences to using this?
4. I have noticed that if I am using WiFi and BLE, and I enable "Support for power management" in menuconfig, I get trash on the monitor console. If I add "Enable dynamic frequency scaling" this goes away. Is this potentially a bug, or is there something that I need to be aware of when enabling this feature?
Thanks,
Jason
In an effort to save power, I am investigating various sleep modes and power saving modes. I've done some testing where I've determined that esp_wifi_set_ps(WIFI_PS_MODEM) does seem to decrease power usage by about 41mA but having BLE enabled keeps it from working. In addition, I've noticed in the documentation that light sleep mode is not compatible with BLE or WiFi, at the moment. So, a few questions:
1. Am I right that esp_wifi_set_ps(WIFI_PS_MODEM) is disabled by using BLE, and is there a way around this?
2. I saw in the documentation (https://esp-idf.readthedocs.io/en/lates ... leep-modes) that light sleep is compatible with WiFi, but that the current API does not support this. Is this still true, and is there a timeline for when light sleep will work with WiFi? Or is there an alternative API that can be used?
3. Is there any documentation for esp_wifi_set_ps(WIFI_PS_MODEM)? Specifically, I am curious if anything else needs to be enabled / disabled, or if there are any consequences to using this?
4. I have noticed that if I am using WiFi and BLE, and I enable "Support for power management" in menuconfig, I get trash on the monitor console. If I add "Enable dynamic frequency scaling" this goes away. Is this potentially a bug, or is there something that I need to be aware of when enabling this feature?
Thanks,
Jason