Faster Wifi station connect improvement
Posted: Sun Sep 10, 2017 9:03 am
Hello,
How would it be possible to setup wifi station mode so that ESP32 connects to AP immediately after receiving good Probe Response?
My tests are showing that after esp_wifi_connect() is invoked (sta.channel in config is set to channel the AP is in) the ESP32 actually does so called "active scan" by sending Probe Request frame and receives a good "Probe Response".
But the problem is that ESP32 even after receiving good Probe Response is still waiting for the per channel scan timeout (100ms) before attempting to actually connect.
I can understand the logic behind this behaviour of course - there might be other APs with same SSID, with better signal that might respond later.
But it would be greatly appreciated if it would be possible to have a "hinted" connect mode - just like channel "hint" in struct wifi_sta_config_t - connect to first responding AP (or connect to AP with specific MAC address avoiding scanning / Probe Request / Response stuff altogether).
This would save about 100ms of PHY RF active time in most cases when the AP you are connecting to is the same as previous time -
which is a great deal of power saving in our battery powered application.
Does anyone have a solution for this?
Your input is greatly appreciated!
How would it be possible to setup wifi station mode so that ESP32 connects to AP immediately after receiving good Probe Response?
My tests are showing that after esp_wifi_connect() is invoked (sta.channel in config is set to channel the AP is in) the ESP32 actually does so called "active scan" by sending Probe Request frame and receives a good "Probe Response".
But the problem is that ESP32 even after receiving good Probe Response is still waiting for the per channel scan timeout (100ms) before attempting to actually connect.
I can understand the logic behind this behaviour of course - there might be other APs with same SSID, with better signal that might respond later.
But it would be greatly appreciated if it would be possible to have a "hinted" connect mode - just like channel "hint" in struct wifi_sta_config_t - connect to first responding AP (or connect to AP with specific MAC address avoiding scanning / Probe Request / Response stuff altogether).
This would save about 100ms of PHY RF active time in most cases when the AP you are connecting to is the same as previous time -
which is a great deal of power saving in our battery powered application.
Does anyone have a solution for this?
Your input is greatly appreciated!