-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wifi doesn't switch to the strongest Access Point as you move around #54
Comments
Regarding this, we could setup callback from Wi-Fi driver using this method: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/network/esp_wifi.html#_CPPv427esp_wifi_set_rssi_threshold7int32_t it will inform us if the RSSI of connected AP is below some threshold, and then we could eventually run active scan (while connected) and check if there are any other APs with same SSID with better signal. Also I would add this as configuration value (on/off) as it will consume more power and in cases where you have only one AP (my case) it won't help :-) This configuration could be set automatically if connecting to Wi-Fi that has multiple SSIDs. It would be maybe good to have some data from your watch to set the Threshold correctly - something like -80 is expected value. Thanks! |
How do you find these things? (Like that method to set the RSSI threshold?) That's WAY better than the other solutions I've found that request the RSSI every few seconds. I'll definitely use that method / callback approach. Thanks! |
When I was playing with Wifi power saving I was reading those docs and when I was reading your issue for second time it just came to my mind :-) |
The method referred to above (esp_wifi_set_rssi_threshold) is not available in the version of ESP-IDF that we're currently using. So we either wait until we upgrade to that version, or set up an "every X seconds" check of the strength of the wifi connection, and if it goes below a set level (I suggest -75), then scan for another AP with a better signal. |
From a conversation with Jan on Slack:
|
I have three wifi Access Points on my boat - engine room, salon, flybridge. The Watch connects to one of them, and then doesn't switch to the strongest one as I move around the boat. So if I start the Watch on the flybridge, then go through the salon to the engine room, it stays connected to the flybridge, and will lose wifi if I go into the engine room.
Helpful links:
https://esp32.com/viewtopic.php?t=18979
The text was updated successfully, but these errors were encountered: