-
Notifications
You must be signed in to change notification settings - Fork 13.3k
WiFi slow down when pushing it hard. #8292
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
Comments
@d-a-v thanks for taking time to assign this issue. I add some more bits... Thank you very much. |
We have often users in Tasmota Discord having wifi connect / disconnect problems with Asus and Ubiquiti routers. Other router brands does make no problems. It seems it is related. |
Your code does only handle UDP packets when the WiFi status shows it is connected. Can you test in your setup to handle UDP packets when available, regardless the connected state? |
@TD-er thank you all for the answers, really appreciated it since I'm spending a lot of time behind this issue. what I described in this issue is not a disconnection problem but a slow down one. PS: I have even disconnection problems that happen from time to time but not so often and I confirm that I still can't detect disconnections if not with some workaround, but this is another story. When the slow down problem happen I'm sure that it is connected since I can still read some messages from UDP or TCP... |
What happens if you send a ping (from any host in your network) to the ESP while testing this? |
hi guys, after two weeks or swearing I finally discovered what was my problems of the ESP8266 slow down. it was the damn router. An Asus AX56U gigabit ethernet that runs well my gigabit internet. After a full wipe of the router and a manually reconfiguration now it works like a charm, like before. |
Basic Infos
Platform
Settings in IDE
Problem Description
Hi all,
I am experiencing strange WiFi slow down after some time the ESP has been booted.
My ESP8266 is connected to WiFi with the standard code you can find on your examples and is receiving UDP messages with the code posted below.
UDP stream happens at 60 msg per seconds and it seems that ESP8266 can handle that stream for minutes but sometimes, randomly after a lot of minutes, ESP8266 is not able to handle 60 msg per second anymore and it drop its capability to 30 msg per second and then to 2 or 3 message per second.
I searched for something that can cause heap fragmentation in my code but there is no part of the code that can cause severe heap fragmentation. No String class used, params are passed by reference, no global vars, all variables has short live in their scope...
I have a special command in my code that forces the ESP to disconnect from the WiFi and reconnect to it.
If I disconnect the ESP from the wifi with
WiFi.disconnect();
and then reconnect, the slow down is solved completely until the next time it happen.
I have checked the free heap when the problem happen and it does not change, while streaming at full speed the free heap is around 24Kb, when the problem happen the free heap is still at 24Kb.
Here you can find a very stripped code to reproduce the problem.
Easyest code possible to reproduce the problem
Debug Messages
No debug msg because there is no error, only a very very strange slow down.
those lines returns respectively:
those values are more or less the same for the entire execution of the program, even during the slown down problem.
Max heap fragmentation value is 4. So heap fragmentation, should not be the cause.
Software used to send UDP packet
I have a java software that sends the UDP packet but for simplicity I'm testing with the well known
https://packetsender.com
The string I am sending is something like this:
The text was updated successfully, but these errors were encountered: