-
Notifications
You must be signed in to change notification settings - Fork 350
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
Why fall off WI-FI in AP mode with WS2812FX / NeoPixel? #159
Comments
I need help for problem |
I have running several ESPs in AP mode and never encountered something similar. Maybe someone else reads this and can help. Sounds like something memory related. |
Hi |
Mostly ESP-01 and NodeMCU dev-boards. |
I tested the esp-01 and esp-07 board |
my closest guess after searching through the code for a bit, the used show methode from adafruit for the esp ist bitbanging the data in a continuos loop without yielding to the network stack (understandably this would ruin the function of setting the LEDs, so no real way around it) WS2812 LEDs have an protocol which can not be replicated using any common peripherals (afaik) so bitbanging is the only option here, maybe someone optimizied the adafruit lib to use DMA or something to take load off the main loop to improve performance |
Why it works in client mode ? |
I can confirm there is long term wifi connection stability issue. |
less work to do in the stack i guess, in AP mode you are the network host |
@smhmousavi, can you attach your code? |
Hi @moos4lord void wifi_setup() { WiFi.softAP("myAP", "12345678"); IPAddress myIP = WiFi.softAPIP(); Serial.print("myAP IP address: "); Serial.println(myIP); Serial.println(); } and remove in loop code if(now - last_wifi_check_time > WIFI_TIMEOUT) { |
Hi, I have the same problem. I use DMS mini and WS2812b 5V The CPU works since the effects continue, but the Wi-Fi does not appear again until the power is restarted |
Which version of the ESP8266 Arduino Core are you using? The latest version (v2.5.0) has a known problem with the WiFi firmware (see esp8266/Arduino#5736). You should be using v2.4.2 or download/install the latest version from GitHub, which works around the issue by reverting back to an older SDK (see esp8266/Arduino#5784). |
Even I am facing the same issue, any solution here? |
After 5 second it is switched off |
Hi and Thank you for the ws2812fx library.
There is a direct dependence on the number of LEDs in the WS2812FX() class and the stability of WI-Fi in the access point mode. (in client mode, stability is much higher.).
Why ?? :(
Note: the start page address is 192.168.4.1
Problem - Wi-Fi suddenly falls off in access point mode:
LED_COUNT = 600 - web pages can not be loaded at all. Wi-Fi falls off right away
LED_COUNT = 100 - it may seem that everything is fine, but after a while (the number of requests, connections), Wi-Fi also falls off.
The text was updated successfully, but these errors were encountered: