Skip to content

Dropping Wifi Connection #424

Closed
Closed

Description

@ozzi91

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.

Activity

  1. thedannymullen commented on Dec 8, 2019

    @thedannymullen

    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.

  2. ozzi91 commented on Dec 9, 2019

    @ozzi91
    Author

    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 :/

  3. ksuclipse commented on Dec 15, 2019

    @ksuclipse

    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"

  4. markusn1 commented on Dec 15, 2019

    @markusn1

    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.

  5. ksuclipse commented on Dec 15, 2019

    @ksuclipse

    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.

  6. markusn1 commented on Dec 15, 2019

    @markusn1

    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?

  7. ksuclipse commented on Dec 15, 2019

    @ksuclipse

    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

  8. markusn1 commented on Dec 20, 2019

    @markusn1

    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.

  9. Aircoookie commented on Dec 21, 2019

    @Aircoookie
    Member

    @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.

  10. Aircoookie commented on Dec 21, 2019

    @Aircoookie
    Member

    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...

  11. ozzi91 commented on Dec 23, 2019

    @ozzi91
    Author

    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.

  12. raoulteeuwen commented on Dec 23, 2019

    @raoulteeuwen

    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...

  13. ksuclipse commented on Dec 23, 2019

    @ksuclipse
  14. ozzi91 commented on Dec 31, 2019

    @ozzi91
    Author

    Even with static ip problem still exist :/

  15. 67 remaining items

  16. blazoncek commented on Mar 14, 2022

    @blazoncek
    Contributor

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

  17. olialb commented on Mar 14, 2022

    @olialb

    @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.

  18. shayded-exe commented on Mar 14, 2022

    @shayded-exe

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

    Does this also benefit ESP-8266?

  19. blazoncek commented on Mar 15, 2022

    @blazoncek
    Contributor

    I think yes. Check platformio.ini.

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

  20. olialb commented on Mar 15, 2022

    @olialb

    Does this also benefit ESP-8266?

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

  21. shayded-exe commented on Mar 16, 2022

    @shayded-exe

    @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.

  22. Losses commented on Jan 3, 2023

    @Losses

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

  23. blazoncek commented on Jan 3, 2023

    @blazoncek
    Contributor

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

  24. Losses commented on Jan 3, 2023

    @Losses

    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...

  25. blazoncek commented on Jan 3, 2023

    @blazoncek
    Contributor

    Unfortunately, yes.

  26. Losses commented on Jan 3, 2023

    @Losses

    Okay, I'll do that

  27. Suxsem commented on Apr 9, 2023

    @Suxsem
    Contributor

    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...

  28. Suxsem commented on Apr 9, 2023

    @Suxsem
    Contributor

    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)

  29. exhibitO commented on Jun 6, 2024

    @exhibitO

    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 🤞🏽

  30. Gittegatt commented on Sep 23, 2024

    @Gittegatt

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    stale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions