letscontrolit / ESPEasy

Easy MultiSensor device based on ESP8266/ESP32
http://www.espeasy.com
Other
3.24k stars 2.2k forks source link

ESP8266's on TP-Link Mesh WIFI Network - Intermittent - HTTP: C001 Connection Failed #4350

Open Humanoid-XXX opened 1 year ago

Humanoid-XXX commented 1 year ago

Checklist

I have...

Steps already tried...

If you self compile, please state this and PLEASE try to ONLY REPORT ISSUES WITH OFFICIAL BUILDS!

Summarize of the problem/feature request

Ever since we switched to a TP-Link Deco S4 Mesh Wifi system we have periodic issues with our ESPs communicating with our domoticz server. -It sometimes doesnt send data or recieve commands through domoticz but we are able to visit the ESP's webpage just fine on computer. Logs show HTTP: C001 Connection Failed and HTTP Code: -1

note that we are having other i2c bus issues with these units : https://github.com/letscontrolit/ESPEasy/issues/4351

Steps to reproduce

Use TP-Link Deco S4 Wifi Mesh with HTTP Domoticz

Happens intermittently, not sure how to reproduce but it happens dozens of times a day.

Most times it does persist after cycling power and a wifi network reboot is usually what fixes it.

We are using the MCP23017 and SHT3X Plugins on these units. We havent had as much of an issue on the units we use without MCP230177 and SHT3X (Especially SHT3x) But we still have had issues at times with other units not using these plugins.

Hardware: D1 Wemos ESP8266

ESP Easy version: ESP_Easy_mega_20220809_collection_A_ESP8266_4M1M

ESP Easy settings/screenshots: image image image image

Rules or log data

Build:⋄
20116  - Mega
System Libraries:⋄
ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support
Git Build:⋄
mega-20220809_57b0c0c
Plugin Count:⋄
79 [Normal] [Collection] [Collection_A]
Build Time:⋄
Aug  9 2022 09:42:55
Binary Filename:⋄
ESP_Easy_mega_20220809_collection_A_ESP8266_4M1M
Build Platform:⋄
Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29
Git HEAD:⋄
mega-20220809_57b0c0c
TD-er commented 1 year ago

Given you mentioned "WiFi Mesh", I strongly suggest to set the WiFi on the ESP to "B/G only" mode. This will fix the typical mesh issues most of the times. Apart from that, there was an issue with the HTTP controllers, which is fixed in the latest release build from 5 days ago.

TD-er commented 1 year ago

Any update in testing with a newer build? Last night I merged another fix in making HTTP calls, also used in C001. It was sending more in the HTTP header than needed (or even allowed) when no password was set. Not sure if that was also causing issues in your setup, but you may want to test using the latest code.

Humanoid-XXX commented 1 year ago

I tested with b/g mode only and it reduced the issue 95% but it still experiences the same HTTP Error occasionally. We do have a password set, so not sure if that was the issue but we will try the newest build and report back.

On Mon, Nov 14, 2022 at 2:43 AM TD-er @.***> wrote:

Any update in testing with a newer build? Last night I merged another fix in making HTTP calls, also used in C001. It was sending more in the HTTP header than needed (or even allowed) when no password was set. Not sure if that was also causing issues in your setup, but you may want to test using the latest code.

— Reply to this email directly, view it on GitHub https://github.com/letscontrolit/ESPEasy/issues/4350#issuecomment-1313461511, or unsubscribe https://github.com/notifications/unsubscribe-auth/AU67Z4EYK3VDYURJC4XF3QDWIIJWHANCNFSM6AAAAAAR4B6TFA . You are receiving this because you authored the thread.Message ID: @.***>

TD-er commented 1 year ago

What build did you test with?

Humanoid-XXX commented 1 year ago

Tested with the latest one: 11/5

2022-11-11 16_34_22-Fruiting 1 2022-11-11 16_35_06-Fruiting 1