jomjol / AI-on-the-edge-device

Easy to use device for connecting "old" measuring units (water, power, gas, ...) to the digital world
https://jomjol.github.io/AI-on-the-edge-device-docs/
5.26k stars 580 forks source link

Wifi Connection reduced with 15.7.0 #3059

Open JensHoRi opened 2 months ago

JensHoRi commented 2 months ago

The Problem

I just updated from 15.4.0 to 15.7.0

While connection 1ith 15.4.0 was o.k. (ESP is for electricity in the measurement cabinet), now its Unreliable (-91dBm).

Every 1 to 3 rounds the esp is rebooting now, because not able to send MQTT. Wouldn't it make more sense just to reconnect wiFi instead of full reboot?

Had there been a WiFi driver change between this versions?

Version

15.7.0

Logfile

[0d00h00m09s] 2024-05-02T22:35:00 <INF> [WIFI] Assigned IP: 10.10.10.164
[0d00h00m11s] 2024-05-02T22:34:57 <INF> [SNTP] Time is synced with NTP Server 10.10.10.201: 2024-05-02 22:34:57
[0d00h00m12s] 2024-05-02T22:34:59 <INF> [MAIN] Device info: CPU cores: 2, Chip revision: 100
[0d00h00m12s] 2024-05-02T22:34:59 <INF> [MAIN] SD card info: Name: APPSD, Capacity: 3840MB, Free: 3818MB
[0d00h00m14s] 2024-05-02T22:35:01 <INF> [MAIN] Initialization completed successfully
[0d00h00m16s] 2024-05-02T22:35:03 <INF> [LOGFILE] Set log level to WARNING
[0d00h01m01s] 2024-05-02T22:35:47 <ERR> [POSTPROC] main: Raw: 001011.98, Value: , Status: Neg. Rate - Read: - Raw: 001011.98 - Pre: 1012.08
[0d00h04m52s] 2024-05-02T22:39:38 <WRN> [WIFI] Disconnected (7)
[0d00h04m52s] 2024-05-02T22:39:38 <WRN> [MQTT IF] Disconnected, trying to reconnect
[0d00h04m55s] 2024-05-02T22:39:42 <WRN> [WIFI] Disconnected (39)
[0d00h04m58s] 2024-05-02T22:39:44 <WRN> [WIFI] Disconnected (205)
[0d00h05m01s] 2024-05-02T22:39:48 <ERR> [POSTPROC] main: Raw: 001011.99, Value: , Status: Neg. Rate - Read: - Raw: 001011.99 - Pre: 1012.08
[0d00h05m01s] 2024-05-02T22:39:48 <WRN> [MQTT SERVER] Unable to send System Topics, we are not connected to the MQTT broker!
[0d00h05m01s] 2024-05-02T22:39:48 <WRN> [MQTT] One or more MQTT topics failed to be published!
[0d00h00m00s] 2024-05-02T20:41:18 <INF> [MAIN] =================================================
[0d00h00m00s] 2024-05-02T20:41:18 <INF> [MAIN] ==================== Start ======================
[0d00h00m00s] 2024-05-02T20:41:18 <INF> [MAIN] =================================================
[0d00h00m00s] 2024-05-02T20:41:18 <INF> [MAIN] PSRAM size: 8388608 byte (8MB / 64MBit)
[0d00h00m00s] 2024-05-02T20:41:18 <INF> [MAIN] Total heap: 4380067 byte
[0d00h00m04s] 2024-05-02T20:41:22 <INF> [MAIN] Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2
[0d00h00m04s] 2024-05-02T20:41:22 <INF> [SDCARD] Basic R/W check started...
[0d00h00m04s] 2024-05-02T20:41:23 <INF> [SDCARD] Basic R/W check successful
[0d00h00m05s] 2024-05-02T20:41:23 <INF> [SNTP] TimeServer: 10.10.10.201
[0d00h00m05s] 2024-05-02T20:41:23 <INF> [SNTP] Configuring NTP Client...
[0d00h00m05s] 2024-05-02T22:41:23 <INF> [SNTP] Time zone set to CET-1CEST,M3.5.0,M10.5.0/3

Expected Behavior

No response

Screenshots

No response

Additional Context

No response

SybexX commented 2 months ago

As far as I know, nothing has been changed on our part regarding the WLAN implementation. However, I cannot say whether the update from espressif32@6.3.2 to espressif32@6.5.0 changed the WiFi implementation.

the current rolling with espressif32@6.3.2 for testing: AI-on-the-edge-deviceupdaterolling_(4049d75).zip

JensHoRi commented 2 months ago

Thank you very much. So a special version to test: I only need to install the firmware via OTA to test, correct?

SybexX commented 2 months ago

@JensHoRi yes this is for OTA update

JensHoRi commented 1 month ago

O.k., lets see. I updated and was needed to fully configure everything again... :-( By the way I saw a new parameter called rssi Treshold maybe responible for all the reboots of the device. Turned it off now. First minutes doesn't show a positive effect. Very interesting: Unbenannt

Just installed new with special espressif. But until yet it looks like still same bad connection! Very confusing, because nothing else had been changed (WIFI Routers still same version, same position)

SybexX commented 1 month ago

What is the temperature of the ESP, has it increased compared to version 15.4.0? The ESP may reduce the transmission power because it gets too hot. With more functions and calculations, the temperature inevitably rises. My ESP is in a waterproof housing and through the new version the temperature is approx. 5°C higher.

Slider0007 commented 1 month ago

@JensHoRi yes this is for OTA update

@SybexX: It is very welcome when you try to help. But please be fair to the user and inform upfront that this NOT an original OTA update package because config.ini gets overwritten which results in loosing their complete configuration. So they have at least the chance to backup before using such update packages with identical names but different content.

JensHoRi commented 1 month ago

Temperature is about 10 degrees lower than before. Around 80 Celsius

SybexX commented 1 month ago

80°C seems very hot to me, runs it at 240 MHz? Mine runs at 53°C and with version 15.4.0 it was 48°C.

JensHoRi commented 1 month ago

Well, I have got 4 devices bought in two orders. The first two are like yours around 45-55 degrees, while the two from the second order always hat been some hotter. The quality of esps is very different. :/

SybexX commented 1 month ago

Do the other two also have problems with the WiFi or only the ESPs that get so hot?

JensHoRi commented 1 month ago

The other are not in a steel cabinet, so in general better wifi. One of them is the hotter one, so that’s just because of the different manufacturer I believe.

JensHoRi commented 1 month ago

I went back to 15.4.0 again. rssi is still better as with 15.7.0, no idea why.

Think I should indead train my eyes and change contacts of ESP to external WiFi adress.

If I'm the only one recognizing wifi issues, you can close this issue.

SybexX commented 1 month ago

If you want you can test this version, for me the RSSI went down from -47 to -42. However, my Fritzbox has been going crazy lately, so I can't say with certainty whether the improvement is caused by my change or by the Fritzbox^^

AI-on-the-edge-deviceupdaterolling_(4049d75).zip