-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Wifi drop in a regular way #1166
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
The NodeMCU is not in a box, correct? No PIR sensor nearby? Try disabling things like Hue, Blynk, Alexa and such until you find a stable wifi connection. |
Does your Unifi Controller provide any additional information? I dont have time to login to mine right now, but it should show client drops, |
Please check the Info page in the main UI for your signal strength. Anything below 60% tends to disappear randomly. Signal is a bit unreliable with ESPs... |
This could be related esp8266/Arduino#5083 (comment) The recommendation is to use
from .platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src\ESP8266WiFiGeneric.cpp
|
Is this a duplicate of #424 ? |
@huggy-d1 in a plastic box with vent (3d printed) and no pir, and it had the same beaviour when connected via usb only, so no power-supply noise. I have disable everything in sync (wled broadcast, udp realtime, dmx, alexa, blynk, mqtt, hue) @Aircoookie Signal strength is a 44%, but it have happened on my desk 1m away from the AP, Still I'll try it before downgrading with something above 90% @pbolduc as far as i know, my unify don't log client drop, but i can't see it in the device list, and can't ping it when it's gone. Not the same timezone, it's close to midnight here, I'll try all of that tomorrow. Thank's ! I had seen #424 but didn't read it fully because it looked like people needed a hard reset to get wifi back, which wasn't my case. |
I look forward to your post backup (is there an http or json API request returning returning all current settings?), full erase, v0.8.6 install and reconfigure to see how it goes. |
This was announced for 10.0.0, but i can't see it. Keep you posted. |
I tried last night to reproduce the issue. I also have Unifi system here. I could not reproduce the drop. Perhaps it is because I was hitting the /json/info endpoint via node-red to see if it dropped. Also, my instance is very close to an access point in my office. Here are my grafana graphs. The uptime drops are were I manually rebooted. I originally had MQTT enabled. I could try to reproduce by not making remote requests for a longer period. |
Thank you for trying @pbolduc. As an aditional info, the drop happen wether i do something with the ui or not, and more that one time i was "kicked out" by the drop while playing with the light. so clearly it didn't went to sleep because of inactivity. |
I setup my monitoring really quickly using docker. I will use this repo (requires a Rasp Pi, WSL2 or other linux env) https://github.com/gcgarner/IOTstack.git
then create a flow like this: Hit me up on the WLED discord if you need help. You can import this flow, [
{
"id": "72cd5dfa.0ddb9c",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": ""
},
{
"id": "4dc81af5.4d7bac",
"type": "inject",
"z": "72cd5dfa.0ddb9c",
"d": true,
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "5",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 190,
"y": 40,
"wires": [
[
"11264bf.036b1b4"
]
]
},
{
"id": "11264bf.036b1b4",
"type": "http request",
"z": "72cd5dfa.0ddb9c",
"name": "",
"method": "GET",
"ret": "obj",
"paytoqs": "ignore",
"url": "http://10.0.9.101/json/info",
"tls": "",
"persist": false,
"proxy": "",
"authType": "",
"x": 380,
"y": 40,
"wires": [
[
"82da9191.3726d8",
"d44200b3.b73e4"
]
]
},
{
"id": "d44200b3.b73e4",
"type": "debug",
"z": "72cd5dfa.0ddb9c",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 550,
"y": 100,
"wires": []
},
{
"id": "fab270c4.5de9",
"type": "influxdb out",
"z": "72cd5dfa.0ddb9c",
"influxdb": "1705007.08cd08",
"name": "",
"measurement": "wled",
"precision": "",
"retentionPolicy": "",
"x": 790,
"y": 40,
"wires": []
},
{
"id": "82da9191.3726d8",
"type": "function",
"z": "72cd5dfa.0ddb9c",
"name": "",
"func": "\nconst payload = [{\n uptime: msg.payload.uptime,\n signal: msg.payload.wifi.signal,\n rssi: msg.payload.wifi.rssi\n},\n{\n macAddress: msg.payload.mac\n}];\n\nmsg.payload = payload;\nreturn msg;\n",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 560,
"y": 40,
"wires": [
[
"fab270c4.5de9"
]
]
},
{
"id": "1705007.08cd08",
"type": "influxdb",
"z": "",
"hostname": "influxdb",
"port": "8086",
"protocol": "http",
"database": "wled",
"name": "",
"usetls": false,
"tls": ""
}
] |
I already have a grafana setup but only with carbon as a backend, i will install influxdb soon but not right now. I have backed up everything, and plugged the device way closer to my AP, 100% -39dbm. |
no success with @pbolduc pinging what would be the best way to fully wip the es8266 before a new flash ? when i flashed 10.0.1 binary over the 10.0.0, the setting wasn't wiped |
Hi, I had constant reboots and crashes on my esp32 but when I turned off the option "Auto brightness adjustment" in led settings all reboot/crashes went away. Might be a good idea to try it. |
Thank you @sansillusion , I just try but without success. I'm not surprise because (and i insist on this) it does not crash, only the network stop working. |
Do you have an extra microcontroller? Wondering if debug build with monitoring serial console can help shed light on what is happening. |
i have a second one on hand, but i will have to read the doc about building a .bin |
Check out Digiblur's video on using VS Code + Platform IO to compile Tasmota. It is the same for WLED |
you can give https://gitpod.io#https://github.com/Aircoookie/WLED/tree/master an try run 1st: pip3 install -U platformio find your firmware.bin file in folder .pio/build/env:type, save as... and flash to your esp |
i have setup platformio in vscode, but can't find the build parameter for the bin in the github release. Building something that's isn't iso will not help :(
|
but is d1_mini the one uploaded as WLED_0.x.x_ESP8266.bin on github ? |
these are all the debug flags in platform.io
you could start by trying You can create your own config (you can put it in a new file
This configuration only debugs the ESP_WIFI stuff |
i think the default debug build is to much because the device is rebooting a lot. I'll try with only DDEBUG_ESP_WIFI :) Thank's |
just dropped and came back, nothing on the serial terminal maybe i need to add more flag |
Be sure to have WLED_DEBUG defined too, otherwise the serial statements do nothing: https://github.com/Aircoookie/WLED/blob/2716f4cbe9197a8c45539efa3e359c3d3deea75b/wled00/wled.h#L127-L138 And then I would expect some of these https://github.com/Aircoookie/WLED/blob/2716f4cbe9197a8c45539efa3e359c3d3deea75b/wled00/wled.cpp#L463-L487 statements to be printed. |
Done,
i'm waiting for it to drop :) |
it dropped 15mn ago, and i still get
Sooo, the wifi stack work, but not the ip stack ? |
This is frustrating. It is clear that the WiFi component is thinking it is connected (state = 3). Does your Unifi controller say it is connected? Do you have this running on a different VLAN with firewall rules? |
Can someone with a Unifi WIFI AP try to enable this and tell me if it break the same way ? |
Earliest I might be able to test is in about 6 hours. I recommend you ask on discord as more people are watching there than this issue. |
i still test it with 2 instances of wled (1x 0.10.2 & 1x 0.10.0) but since 15 min i see no issues. All works fine, i will keep the test running for the next 8 houres. |
I'm not at a day you know :) Thank's a lot |
correction: connectivity between laptop and wled drops immediately if i enable this block broadcast checkbox. I didn't recognised it, because my laptop switched (while provisioning) to another (from unifi) independent wifi. |
Thank's for that @toto79, i wonder why mine drop between 20 to 40mn after ... |
I have UniFi (love it!) and about 7 ESP8266 devices (plus the occasional test devices) running WLED and have never experienced any problems with either WiFi or AP on any device. They can all run for several hours, running into days/weeks without a hitch. Actually, tell a lie, there has been a couple of occasions I experienced drop-outs (not with WLED but some other IoT devices) which caused me some head-scratching in the beginning, until a simple reboot of the UniFi device fixed all and any problems I was having at that time. Now, if any glitches start appearing, first thing I do is reboot UniFi and it's sorted. |
ah ! mistake where made XD wrong button was pushed |
Guess I'll join the club. Also Unifi, also ESP8266, also WiFi problems. For me a saw a very high latency (~200-300ms) and drops every few seconds. I already modified a lot of stuff before noticing the WiFi problem, so no idea if my solution is applicable for vanilla WLED, but for ne not forcing 802.11n solved most Unifi problems (2ms latency, no drops). You could try removing |
i will try on the other controller when i have a couple of hours @adlerweb |
@adlerweb thank you for the feedback! Forcing mode N was added to resolve connectivity issues with Asus routers IIRC. I believe it would probably be easiest if I add a checkbox so it can be disabled at runtime. |
Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs. |
Describe the bug
The wifi drop for chunk of about 20mn at a time, every ~40mn without visible reason.
I've seen other issue so this is what i have try
tested with and without HA integration
tested with and without led connected
tested with and without 'keep wifi from sleeping'
tested without doing anything to it.
tested with all other protocol disable (mqtt, upd sync and stuff)
tester only without NTP
The Esp doesn't reboot because the led effect are working during both the drop and re connection
To Reproduce
Flash a nodemcu esp8266 lolin with Wled official image, power on, enjoy ?
Expected behavior
No drop please :(
WLED version
Additional context
My wifi is based on unifi, on channel 1 because Nanoleaf was picky about it.
49665 packets transmitted, 31224 received, +17839 errors, 37.1308% packet loss, time 50154891ms
I am willing to try anything that can help you debug
Thank you for your help!
The text was updated successfully, but these errors were encountered: