-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
ESP8266 MQTT disconnecting #4996
Comments
What kind of plugins are you using? |
I use this plugins:
RuleSet1:
RuleSet2:
I will try do disable Plugins, but if i disable for example Analog input my RuleSet2 doenst work anymore .. |
I also updated (this morning) with ESP_Easy_mega_20240229_normal_ESP8266_4M1M. I do not know if it is related (it looks like) but since the update my DSMR docker does not get readings anymore from ESP8266. I use ESP8266 for reading my P1 "Slimme meter". ESP Easy gives only the following log messages:
The connection between the ESP8266 and the DSMR docker instance worked for years. My latest working update was from 23-12-2023. I reverted back now to the 23-12-2023 version and everyting is working again. What can be wrong? Do I have to open a new issue? |
Can you change the |
@tonhuisman, thanks for your reply!
That did the trick! (RX Receive Timeout was indeed declared at 0). DSMR is now receiving meter readings again. You are incredible. Thanks! ESP Easy gives now (with the 29-02-2024 update) the following log messages. A message with "Command unkwon" appears regularly. Do you know if this is a problem and do you know what it means?
|
This will happen when having the Serial log enabled on the Tools Advanced page, while also using the same |
Thanks for the clarification. With
the 'problem' is solved! |
Ok, i have tested... |
Further Test's: TV OFF - Leap Version
TV ON - Leap Version
TV OFF - Version from 13.10.2023
TV ON - Version from 13.10.2023
Fact is that the leap version has a very weak and susceptible WLAN |
It seems like your TV has an unused but enabled WiFi interface that's spamming the 2.4 MHz frequency band, causing ESPEasy to try and respond to all it's invalid signals 🤔 |
100% agree |
There is also the Christmas release, 20231225, have you tried/tested that release, and what results do you get with that? |
And what's the distance between the ESP and the TV? |
The distance to the TV is round about 6 meters. The problem already exits wirh the Christmas release, 20231225. (see ping report)
|
Can you check the sysinfo page to see which SDK is used? |
29.02. - ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support |
OK, that doesn't look different. Maybe also test with "Force b/g" mode enabled? |
Both are : |
I also have problems with the latest versions. Version 20230409 ran for over 300 days without disconnecting. From the December version I have wifi disconnects. I have set Force WiFi No Sleep. Force WiFi B/G had no effect whether with or without. Also Extra Wifi wait and Enable SDK WiFi Auto Reconnect. What I tested is from which version the problems occurred. Version 23_10_2023 works. November I'm not quite sure, I'm currently testing it. December and February fail. I had the problem with an ESP that with the February version it no longer connected to the WiFi even after multiple reboots, and the local access point was also not visible. |
Do you use software serial for those plugins requiring serial? |
I may have found a possible issue where on ESP8266 the capability flags were not initialized on SDK2.7.4 builds. |
I am ready for test's .. |
Have you tried this test build? |
OK, i have checked the test build, and i dont have any disconnects so far .... !! |
OK Uptime: 01h01m => no disconnect (with TV) |
OK, now I'm really curious to what special settings (and what model/brand) you have on your access point. |
OK, i have a TP-Link Archer C7 V2 Router, configured as repeater with OpenWrt (actuell version).. |
And do you have anything special set, like "N-only" or something else? |
|
I don't know if this "Mode" option (where also the "Allow legacy 802.11b rates" checkbox is shown according to the screenshots) also has options for "G+N" or something similar? |
By the way, increasing TX power on the access point rarely (if ever) improves reliability of the WiFi connection. Another reason why increasing TX power of the AP rarely is beneficial is that it only improves RSSI on the receiver end but also decreases the SNR as it adds distortion to the signal and probably makes reflected signals stronger. Also the RX sensitivity of the radio in the AP may actually decrease. Since you effectively require all other devices to send at higher TX power, you may also see that some devices (typically cheap ESP boards with badly tuned antennas) operate less reliable at higher TX power due to RF signals being fed back into the ESP and power supply of the ESP board not able to keep up with the power demands. |
What options are available for the "Mode"? Now it only shows "N", but what are the other options? |
I don't think the "Allow legacy 802.11b rates" checkbox will make any difference if it is using N-only |
The ESP says: WiFi Connection: | 802.11g (RSSI -62 dBm) and Force WiFi B/G: is set. |
I am glad it is working, but to be honest I am not 100% sure why as the fix I did shouldn't have made any difference. I have to look into this a bit more to be sure. |
Just for clarification, with the leap build a get disconnects, no matter which settings .. |
ESP_Easy_mega_20231225_normal_ESP8266_4M1M If I set value corrections here, there is a problem with mqtt!!! Mqtt works fine if I don't set any rules. Back to ESP_Easy_mega 20231225_normal_ESP8266_4M1M It's ok here: ESP_Easy_mega_20231130_normal_ESP8266_4M1M. Please check and let me know if this is the reason for you. |
Hmm that's interesting. |
if you need some additional testers I might be able to help here. |
I uploaded the build which should fix this to the webflasher |
Hi Experts,
i migrated from ESP_Easy_mega_20231013_normal_ESP8266_4M1M to ESP_Easy_mega_20240229_normal_ESP8266_4M1M.
Now i get at least every three minutes this message in the broker log:
The wifi connection is stable, 58 dBm.
Max WiFi TX Power: 17 db
WiFi Sensitivity Margin: 3db
802.11g is enabled (Force B/G on the tools->Advanced page)
ECO mode is disabled
Minimum Send Interval 100ms on MQTT settings
Client Timeout: 1000ms on MQTT settings
Home Assistant (openHAB) MQTT
Broker is Raspberry mosquitto version 2.0.11
MQTT broker is selected via IP 192.168.1.100
regards Klaus
The text was updated successfully, but these errors were encountered: