-
Notifications
You must be signed in to change notification settings - Fork 7.2k
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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_ALL_CHANNEL_SCAN, this parameter doesn't seem to work (IDFGH-6630) #8269
Comments
Thanks for reporting. |
@shun-dgut can we have the console logs of the DUT when it connects to both the AP's, We will be able to see the RSSI when it connects to the AP and compare the RSSI difference it sees between the AP's. |
Thank you for your reply. Here is the log, rebooting the board via the rst pin appears to be random every time the bssid it connects to. |
@shun-dgut Thanks for the logs.From the logs,we see that there is a 20db difference between the RSSI of the AP's.Still the Client connects randomly.On further analysis, It is seen that the AP1 with lower RSSI is at channel 1 and AP2 with higher RSSI is at channel 7. |
hi @shun-dgut [2022-01-25 19:05:48.138]# RECV ASCII> hi @shun-dgut In the log you provided, channel 7, the ap with the best rssi, will be scanned every time I (2560) wifi:new:<7,0>, old:<7,0>, ap:<255,255>, sta:<7,0>, prof:1 However, during the connection process, there was a connection error in channel 7, and then channel 1 was rescanned to connect to the ap of channel 1. I (2560) wifi:state: assoc -> init (2c0) The reason may be that when connecting to channel 7, the router kicked out the sta and failed to connect successfully. |
But this connect error should not happen. |
hi @shun-dgut Please provide the model of the router, and I will try to reproduce this problem locally. |
one is RT-AX56U and other one is OpenWrt 19.07.4 r11208-ce6496d796
|
@shun-dgut Which one is the channel 7 AP? |
BTW, just for comparison. |
|
I use esp32c3, I also experimented on 8266 and found that 8266 basically chooses a router with a stronger signal value. |
@shun-dgut can we get the sniffer capture on channel 7 and also can you enable the wpa_supplicant logs on DUT. |
Can you tell me how to set it in the firmware? |
@shun-dgut To enable the logs, go to idf.py menuconfig->component config->supplicant->print debug message from wpa_supplicant. |
|
@shun-dgut Thank you,Can we have the corresponding sniffer log on channel 7.To know the reason why the AP is rejecting the STA assoc every alternate attempt. |
Do I need to use the packet capture card to capture network packets? |
@shun-dgut if you have a linux laptop,You can use it to sniff the channel. ifconfig down |
This is the log and data packets in the two processes. The first time it was successfully connected to the router with strong signal, the second time it was not.
|
@shun-dgut Looks like this issue is similar to the existing issue 8192 Since you are working c3, I will get back to you with a patch for the same. |
Thanks . When can you give me these patch tests |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在工作中,无法亲自回复您的邮件。我将在工作结束后,尽快给您回复。
|
Hi @shun-dgut on the idf 4.3, pls use the following patch clean the already existing build and rebuild again. |
Then how do you address this issue in your patch? |
Tried it and it doesn't seem to work log
|
Hi @shun-dgut , can we have the capture on channel 7 with this patch? |
There is a delay between the deauth and Auth so that the deauth of the AP is processed before sending the Auth. |
Could someone verify similar problem exist on the esp32 or if this is only for esp32c3? Also if this AP specific, do we have list of these APs? |
@AxelLin @Irfan93 As soon as the fix is merged and released, one of us would update the thread. Regards, |
We're seeing this problem in an Orbi Wifi mesh network environment, with multiple APs in the household. Our gateway running ESP-IDF 4.3.2 frequently selects the AP on the other side of the home with the worst RSSI even though it's literally sitting next to an AP. This greatly impacts connectivity. Module: ESP32-WROMM-32D
Unfortunately, Wireshark data is hard to come by. But if needed to progress this issue we can work with the end-user to obtain it. |
hi! Regards, |
|
Thank you sir. Please do mention the commit for each release branches when the time comes as it will be helpful. |
How to use this fix? |
Hi! Usage
Please let us know in case of any more problems. Thanks, |
@vik-gokhale |
@AxelLin |
But it's not easy to verify the appropriate setting. |
Hi, |
The fix (d688fc3) is committed after v4.4.3 release, so you have to either update v4.4 branch or wait until next release. |
Hi @marko-savic, |
Cristal clear and logical, thank you. |
Hello @vik-gokhale , |
Hoping that this question is relevant here, please explain to correctly use the WIFI ALL CHANNEL SCAN for ESP4.3. I am a newbie to the use of this config for it to work correctly in a mesh network but it also needs to work correctly in a single AP environment? Any links and examples will be greatly appreciated. |
Hi @vik-gokhale , Edit: my mistake, the change is already in v5.0.1. Thank you. |
@gstrakabsci Its already available on v5.0(f8e2c30). @Irfan93 Please see the comment https://github.com/espressif/esp-idf/blob/release/v5.0/components/esp_wifi/include/esp_wifi_types.h#L212 |
Thanks for reporting, feel free to reopen. |
Environment
git describe --tags
to find it):v4.3.2-198-gb9a96186fd
riscv32-esp-elf-gcc (crosstool-NG esp-2021r2) 8.4.0
Problem Description
Using full channel scanning doesn't work, I built two wifi with the same SSID and password, but ESP32C3 doesn't always choose the connection with the best signal.
Code to reproduce this issue
The text was updated successfully, but these errors were encountered: