Skip to content
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

Dropping Wifi Connection #424

Closed
ozzi91 opened this issue Dec 5, 2019 · 95 comments
Closed

Dropping Wifi Connection #424

ozzi91 opened this issue Dec 5, 2019 · 95 comments
Labels
stale This issue will be closed soon because of prolonged inactivity

Comments

@ozzi91
Copy link

ozzi91 commented Dec 5, 2019

Hello!
I have problem with drop wifi connection. After 20-30mins my wled on wemos d1 mini is not reachable till wemos reset. After reset wled is working again for next 20-30mins and goes off. I tried 2 wemos, and it is not working at all.

I tried wled_0.8.6_ESP8266_lwip1 and WLED_0.8.5_ESP8266 flashed by esphome flasher but it doesnt help-the same result. Distance between router and esp its like 10cm. I can provide you any information you want to check it out. If it is matter i integrate it with HA.

@thedannymullen
Copy link

Have you tried without any leds on it? I actually had this problem and found my led was causing the wemos to lock up. I can’t explain it without a scope but assume it was pulling the pin down and causing a reset.
I found another led and put one in series with my string as a null pixel. Everything works fine.
It was confirmed to be hardware as other software had the same issue with the suspect led tied in first.

@ozzi91
Copy link
Author

ozzi91 commented Dec 9, 2019

Hello! Ty for answer. I tried wit h2 differents leds set and even without any led. Still wifi droping. Blue led on wemos is on so wemos is working :/

@ksuclipse
Copy link

ksuclipse commented Dec 15, 2019

i'm actually running into the exact same thing. it failed right at 20 minutes though the effects are still running. it just dropped off wifi. here is json/info:

{"ver":"0.8.6","vid":1910255,"leds":{"count":519,"rgbw":false,"pin":[2],"pwr":0,"maxpwr":65000,"maxseg":10},"name":"WLED Light","udpport":21324,"live":false,"fxcount":83,"palcount":50,"arch":"esp8266","core":"2_5_2","freeheap":18296,"uptime":1200,"opt":119,"brand":"WLED","product":"DIY light","btype":"bin"

@markusn1
Copy link

markusn1 commented Dec 15, 2019

I have the same issue with 0.8.6 and 0.9.0-b1.
0.8.5 does not seem to be affected by this.
Could it be the "non-Wemos" D1 minis from aliexpress?

edit: It looks like the wifi connection is still there, just the IP stack does not seem to work anymore.

@ksuclipse
Copy link

i was seeing it in 8.5 as well. so additional testing, i had the esp8266 running standalone with no led's attached and it still dropped its wifi eventually. Strangely when i ran it with AP mode set to always it ran all night with no issue however when i plugged it back into the LEDs it failed after about an hour. Even the AP is no longer broadcasting.

@markusn1
Copy link

I just tried using binaries which i compiled myself with different core versions (i tried 2.4.1 and 2.6.2), but it did not change anything.

ksuclipse, what board are you using?

@ksuclipse
Copy link

Its a knock off nodemcu. so i was wrong it is still working if i have the AP always on. give it a try and see if i'm crazy

@markusn1
Copy link

I tested all WiFi modes (on, on when not connected, off) to no avail. Still the same behavior for me. After about 10-20 mins the Wemos loses WiFi. But like i said, it is still connected to my accesspoint. If i kick it, it will come back reachable, but eventually loses connection again.

@raoulteeuwen
Copy link

@Aircoookie
Copy link
Owner

@raoulteeuwen Thank you for the links! I believe I will add a setting to enable WiFi.setSleepMode(WIFI_NONE_SLEEP);, but not enable it by default.

The only thing I do not like about it is that it triples the average power consumption of the ESP from 20mA to 60mA (which will also make it run hotter), but if it helps fix disconnects, that tradeoff would be worth it in those cases. I have a very flaky WLED installation myself (because it is outside, signal strength very low, around -80), I will test tomorrow if disabling sleep could help in that case.
All my indoor devices with good signal strength never seem to have any connectivity issues.

It could also be router-dependent, ESPs tend to run better with FritzBoxes or Netgear than TP-link or Asus units as far as i've heard.

@Aircoookie
Copy link
Owner

An update on this. Setting sleep mode unfortunately doesn't seem to help with connectivity on my outside unit. I seems like the signal quality is just really poor on that unit (maybe hardware defect). I also opened the WLED-AP and I can only access it from outside, phone doesn't discover it inside. I will try and flash 0.8.5 (since many of you report issues since 0.8.6) just in case, but I do believe it is just because of the signal. It's a shame too since my phone has good Wifi reception at the place the outside unit is set up...

@ozzi91
Copy link
Author

ozzi91 commented Dec 23, 2019

Just for info, i really have no idea why this is working or not. I tried:
Use 3 different NODEMCU bought on Aliexpress.
Use 3 different Wemos D1 mini bought on alie
Turn it on without ir with led strip or led lights and it doesnt help.

Devices are like 10cm away from router (Netgear with openwrt). I used different power source aswell like usb form pc or extended power source.
I dont know what i can try more.

@raoulteeuwen
Copy link

Could you try to assign one or more controllers (NodeMCU/Wemos) a fixed IP and see whether that has any influence? Just wondering whether any other router config option could be in play...

@ksuclipse
Copy link

ksuclipse commented Dec 23, 2019 via email

@ozzi91
Copy link
Author

ozzi91 commented Dec 31, 2019

Even with static ip problem still exist :/

@markusn1
Copy link

@raoulteeuwen Thank you for the links! I believe I will add a setting to enable WiFi.setSleepMode(WIFI_NONE_SLEEP);, but not enable it by default.

The only thing I do not like about it is that it triples the average power consumption of the ESP from 20mA to 60mA (which will also make it run hotter), but if it helps fix disconnects, that tradeoff would be worth it in those cases. I have a very flaky WLED installation myself (because it is outside, signal strength very low, around -80), I will test tomorrow if disabling sleep could help in that case.
All my indoor devices with good signal strength never seem to have any connectivity issues.

It could also be router-dependent, ESPs tend to run better with FritzBoxes or Netgear than TP-link or Asus units as far as i've heard.

I am running a lot of ESP-based devices (Sonoff, Shelly, WemosD1 etc) on my WiFi (Ubiquiti Unifi UAP-AC-LR), and all are very stable, with the exception of D1s running WLED 0.8.6 and later. I had similar issues with Tasmota when it was compiled with the wrong ESP Core. Trying different core versions on newer versions of WLED did not help though.

@kabelux
Copy link

kabelux commented Jan 3, 2020

My NodeMCU ESP32 is really wifi unstable. Keeps disconnecting every 2 or 5 minutes. I'm using latest beta version (glitter effect is so cool!)

@Pocke01
Copy link

Pocke01 commented Jan 8, 2020

I have the same problem with a WemosD1 on a QuinLED-dig-uno and running wled 0.8.6.

After a few minutes I'm unable to ping the ip and connect to the web interface.
The strange thing is I'm still able to turn leds on/off with home assistant.

I have tried with both dhcp and static ip. If I use dhcp my server show the wled as offline at the same time as I'm unable to connect to the ip. Im using Unifi AP-AC Pro for my wifi.

@AnshumanFauzdar
Copy link

Ohh well, I think problem is not solved yet
I am also using Wemos D1 mini and same wifi connection drops after 15-20 minutes and I have to manually power off/on wemos!
Please do update if anyone finds a solution!
Thanks :)

@paularmstrong
Copy link

I have the same issue with an ESP32s: #517. It's even more noticeable with that, as it often fails to stay on for even a few seconds. When it does come on, it'll stay up for ~15 minutes before it drops and needs power-cycling

@AnshumanFauzdar
Copy link

I have the same issue with an ESP32s: #517. It's even more noticeable with that, as it often fails to stay on for even a few seconds. When it does come on, it'll stay up for ~15 minutes before it drops and needs power-cycling

Lets see, if anybody comes up to a solution, WLED UI is very dope, I want to use this only!

@markusn1
Copy link

I just compiled wled from the latest master branch, and so far it seems to be stable (around 2 hours so far). Will keep you updated!

@AnshumanFauzdar
Copy link

I just compiled wled from the latest master branch, and so far it seems to be stable (around 2 hours so far). Will keep you updated!

Ohh thank you brother, You did not used the binary?

@markusn1
Copy link

markusn1 commented Jan 25, 2020

So, around 20 hours later it is still running fine.
@AnshumanFauzdar yes i did not use one of the precompiled binaries, but compiled it from the most recent source.
@Aircoookie whatever you did, it seems to work for me!

@AnshumanFauzdar
Copy link

Thanks brother, will compile it ASAP

@sirs2k
Copy link

sirs2k commented Jan 27, 2020

I just compiled wled from the latest master branch

I'm sorry, still a noob here but having wifi issues like everyone else.
Could you link me to the specific release for the esp8266?

Thank you

@AnshumanFauzdar
Copy link

I just compiled wled from the latest master branch

I'm sorry, still a noob here but having wifi issues like everyone else.
Could you link me to the specific release for the esp8266?

Thank you

Hey,
Have you complied from here?

@Apapra
Copy link

Apapra commented Jan 29, 2020

My problem is that my four esp8266 nodemcu works perfectly with WLED 0.9.0-b2 (and static IP) till router reboot. I found that after reboot esp8266 don't reconnect to wifi till power off-on. Any way to fix this? Thanks!

@AnshumanFauzdar
Copy link

WLED 0.9.0-b2

Where is b2 released?

@Apapra
Copy link

Apapra commented Jan 29, 2020

Where is b2 released?

It's not released, it's compiled from source code.

@spinkohass
Copy link

spinkohass commented Feb 8, 2021

I just setup 2 wled using esp8266/nodemcu boards and both are having this issue. I tried disabling sleep mode and dont have alexa sync enabled. They lose connection intermittently. I can see they have IP addresses on the router. What's interesting is that if one drops offline, it can still be controlled via the sync feature which suggests that it's the web-server dieing? Anyways, this is super frustrating to a noobie like me. I have not tried going to 11.0 yet. I have 2 new esp boards coming today, will see how that goes.

@spinkohass
Copy link

I just setup 2 wled using esp8266/nodemcu boards and both are having this issue. I tried disabling sleep mode and dont have alexa sync enabled. They lose connection intermittently. I can see they have IP addresses on the router. What's interesting is that if one drops offline, it can still be controlled via the sync feature which suggests that it's the web-server dieing? Anyways, this is super frustrating to a noobie like me. I have not tried going to 11.0 yet. I have 2 new esp boards coming today, will see how that goes.

Make that 4/4 boards that have this issue. I tried 11.0 (from 11.1) and it seems to have fixed one board.

@spinkohass
Copy link

spinkohass commented Feb 9, 2021

I just setup 2 wled using esp8266/nodemcu boards and both are having this issue. I tried disabling sleep mode and dont have alexa sync enabled. They lose connection intermittently. I can see they have IP addresses on the router. What's interesting is that if one drops offline, it can still be controlled via the sync feature which suggests that it's the web-server dieing? Anyways, this is super frustrating to a noobie like me. I have not tried going to 11.0 yet. I have 2 new esp boards coming today, will see how that goes.

Make that 4/4 boards that have this issue. I tried 11.0 (from 11.1) and it seems to have fixed one board.

11.0 made it 24 hours then dropped it offline. 10.2 didn't work either (2 drops in 2 hours)

@sockmonkey0223
Copy link

I know it's not a great answer, but after suffering with this on multiple ESP8266 boards forever, I finally switched to an ESP32 board and it has been rock solid.

@spinkohass
Copy link

I know it's not a great answer, but after suffering with this on multiple ESP8266 boards forever, I finally switched to an ESP32 board and it has been rock solid.

I appreciate the info - I wish I would have known about this before ordering these other boards. I have ordered 3 digUno in Jan, but am getting impatient as they are taking forever to become available/deliver. I ordered 3 esp8266 to kill the time with the thought of repurposing these boards later. 1 showed up dead. Then I ordered 2 more. At this point, I have 4 boards and all of them are intermittent, but some more than others. Sigh. I guess I will put up with these until the DigUno's show up (esp32 based) and hope for the best.

@BroManDudeGuyPhD
Copy link

I'm actually running into this as well. One board is a DigUno and one is ESP32. I've flashed both again and turned off WiFi sleep

@BroManDudeGuyPhD
Copy link

So making each IP reserved on my router and using the reserved IP setting in WLED got me the longest uptime I've seen so far

I also have run into the weird issue where they're both offline in the app, I manually unplug one, it comes online so I turn on sync, and my other light works with sync even though it's offline in the app. This only works about half the time

@shayded-exe
Copy link

It would be nice if we could configure a GPIO pin as a reset button to either restart WLED or reset the WIFI connection in the event of a dropout.

@AnshumanFauzdar
Copy link

It would be nice if we could configure a GPIO pin as a reset button to either restart WLED or reset the WIFI connection in the event of a dropout.

Wi-Fi connection is working fine on latest versions and there is experimental Wi-Fi sleep option on setting -> Wi-Fi page:
image

@BroManDudeGuyPhD
Copy link

Actually, I haven't had an issue after separating my 2.4 and 5GHz bands. Try this. Had it on auto before, but now all my smarthome WLED stuff has been online for weeks straight with no issues. Most these boards need 2.4 and for some reason auto on the router just messes them up

@shayded-exe
Copy link

Wi-Fi connection is working fine on latest versions and there is experimental Wi-Fi sleep option on setting -> Wi-Fi page: image

By latest versions do you mean 0.12.x or beta 0.13.x (I'm on 0.12.x)?

I've been having dropouts that require a reset after five or so minutes of use. I'll give the WiFi sleep option a try!

Actually, I haven't had an issue after separating my 2.4 and 5GHz bands. Try this. Had it on auto before, but now all my smarthome WLED stuff has been online for weeks straight with no issues. Most these boards need 2.4 and for some reason auto on the router just messes them up

I'm already using separate bands. Do you have WiFi sleep disabled?

@olialb
Copy link

olialb commented Mar 14, 2022

I had also a lot of connection issues with 0.12.x release. I needed to reset power many times. Sometimes serveral times a day. Also with "Disable Wifi sleep" same issues.

3 day ago I updated to 0.13.0-b7.
Since that update WIFI seams to be absolute stable... Is somthing changed in 0.13.0 which improves the wifi stability?

@blazoncek
Copy link
Collaborator

3 day ago I updated to 0.13.0-b7. Since that update WIFI seams to be absolute stable... Is somthing changed in 0.13.0 which improves the wifi stability?

you bet! 😁

@olialb
Copy link

olialb commented Mar 14, 2022

@blazoncek May be stupid question.. OK :-).
In the realease note I did not find nothing about this...

@blazoncek
Copy link
Collaborator

Newer ESP core. Not WLED related, but still beneficial.

@olialb
Copy link

olialb commented Mar 14, 2022

@blazoncek Cool!! I really like this great project with all the features. Thanks to all conributors!
If the new ESP core make the difference its super good news!
At the end its all about stability of the WiFi connection to be happy with it in all day use and I was really annoyed about this connection losts.

@shayded-exe
Copy link

Newer ESP core. Not WLED related, but still beneficial.

Does this also benefit ESP-8266?

@blazoncek
Copy link
Collaborator

I think yes. Check platformio.ini.

You can always choose to compile yourself with the latest ESP core.

@olialb
Copy link

olialb commented Mar 15, 2022

Does this also benefit ESP-8266?

@rshea0. Actually I am using ESP-8266 and WIFI seams to be stable now!

@shayded-exe
Copy link

@rshea0. Actually I am using ESP-8266 and WIFI seams to be stable now!

Excited to hear! I took a break from my project but I'll have to test it out when I start on it again.

@Losses
Copy link

Losses commented Jan 3, 2023

Using ESP8266, the issue still exists (0.14, bl0), is there any way to provide some logs for the developers?

@blazoncek
Copy link
Collaborator

Use debug build and monitor serial output.
You will need to compile your own binary or check @srg74 repository for pre-compiled debug binaries.

@Losses
Copy link

Losses commented Jan 3, 2023

Use debug build and monitor serial output. You will need to compile your own binary or check @srg74 repository for pre-compiled debug binaries.

One more detail, if I turn on the light, it will always work, but if it's turned down, the Wifi connection will be unavailable eventually.

So, there's a question, I have to turn on the "debug mode" and keep watching the terminal until the device is down? That looks really exhausting...

@blazoncek
Copy link
Collaborator

Unfortunately, yes.

@Losses
Copy link

Losses commented Jan 3, 2023

Okay, I'll do that

@Suxsem
Copy link

Suxsem commented Apr 9, 2023

Same issue for me. Esp8266, after some hours the IP stack dies (wifi connected but no ping, no http response) despite the led effects still running. Will try the no wifi sleep without much hope...

@Suxsem
Copy link

Suxsem commented Apr 9, 2023

If I disconnect the device from the access point control panel, it will reconnect and start to repond again, without any reboot required. (runtime is weeks so no power supply related issue here)

@exhibitO
Copy link

exhibitO commented Jun 6, 2024

I too have having this issue and it seems agnostic of WLED version, I have tried several and toggled settings above such as Disable Wifi sleep, static IP and it still happens.

Trying to update firmware for ESP-WROOM-32 as indicated here https://docs.espressif.com/projects/esp-at/en/latest/esp32/Get_Started/Downloading_guide.html#id4, after that I reflashed WLED and 🤞🏽

@Gittegatt
Copy link

Gittegatt commented Sep 23, 2024

I had a scenario with lots of wires in a small acryl case and most of the pings dropped and those who were answered, had a response time latency delay of >1 second. First thought that my D1 Mini has a defect with the wifi interface module.

Please keep in mind!,
that every single wire causes interferences.
So, if you are using a lot of wires in a small case with just little distance to the wires, you will facing bad signal strength and even connection drops.

Solution options to avoid this:

  1. use a bigger or no case
  2. keep distance to the wires
  3. drill the wires to cancel / flatten out interferences
  4. avoid placing the device nearest area to USB 3.x devices/cable --> background reason last topic (maybe you have to translate)

Regards and stay tuned. =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale This issue will be closed soon because of prolonged inactivity
Projects
None yet
Development

No branches or pull requests