This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
v3.0.0b3 - WebUI does not respond anymore #8
Comments
After a restart from command interface (su) the webui is available again ... |
I'll monitor and keep an eye out. Next time could you capture the # available memory? This is the usual culprit when things start getting slow. Perhaps there is a memory leak somewhere. Also did you have this problem with earlier builds? |
Yes I will do, but how shall I capture the # available memory? It's not Free heap .... or? |
yes it's free heap. grab it either from the MQTT hearbeat or via the webUI |
see above ... Free heap was during webui freeze: 94296 bytes - after restart (now) 95.076 bytes |
oops, missed that. I'll monitor here. very strange |
My webui started to slow down again .... > 10 secs to respond and no memory problems. Could you please provide the correct download link ..... Thanks |
take the branch called |
I have done so. |
weird, if you select the branch from the pull-down list and download the zip it will take the branch, |
@proddy I then the looked at my mesh network and recognized that the ems-esp was now connected to my main router quite fare away with very poor signal and speed. When I restarted the gateway connected to the next mesh accesspoint (in 50cm distance) and everything works fine. Could it be that after a while wlan connection is somehow changed? I understood that there has been changes on network access since v3.xx. |
that would explain it what you're seeing. I see from the first post the signal strength was 42% which is quite low. The ESP will automatically reconnect the WiFi if it loses a connection. The best way to spot this is to use Syslog and scan the log files for the re-connect messages. Another way is to look at the MQTT Heartbeat for the rssi (wifi signal strength) and see if this is dropping. For example, Home Assistant will keep a history or alternatively push this information into Grafana. In later v3 versions, I added Ethernet code, but that shouldn't affect the Wifi behavior. I don't know why your network is reconnecting and sending the ESP to another router node. I've had similar problems at home with the ESP32 which is literally 1 meter from my Unifi AC Pro wireless Access Point and EMS-ESP would still always connect to one of my other Access Points on another floor in my house. I could never figure out why. I guess I'll google it... |
In v3.0.0b1 I haven't had this reconnection issue and in the v2.xx versions neither. Any changes done on wlan since b1? |
The biggest change I could think of is the ESP32 libraries that got upgraded to 3.1.0 and uses the latest Arduino core libraries. That was pushed 2 weeks ago. See https://github.com/platformio/platform-espressif32/releases/tag/v3.1.0. You could try downgrading? Replace with |
I changed my WLAN Mesh configuration. Now I am using the same wlan channel for a ssid. Before I had automatic channel search activated and the access points selected different channels for the same ssid depending on location. Now with fixed (same) wlan channel for all accesspoints it seems to work. My raspberry Pi's had no problem selecting the right (strongest) accesspoint, but it seems to gave problems with the esp32 when wlan channels where different for same ssid. |
I just installed then bin from v3.0.0b5 and I got ems-esp connecting again to the main router with low wlan signal level ... |
a good test would be to compile 3.0.0b5 yourself with |
if you add the -DEMSESP_WIFI_TWEAK to your pio.local.ini it will change the WiFi Tx signal strength and also switch off the modem sleep mode (which stops listening to beacons). This may help with connecting to mesh nodes. |
I spent like 3hrs yesterday trying to fix emsesp/EMS-ESP#729. For some reason GitHub is using the wrong branch for the source code assets. How are you building the firmware, using VSC? If so make sure you have git installed and clone the repository, then choose heads/esp32_dev branch. If you're using the command line just use the git CLI to pull the remote branch |
Sorry but I am not an IT-guy but rather a retired electrical engineer .... with home automization as a hobby. Yes I am using VSC but just the easy way: 1. Dowload zip-file with source, expand into local directory and open the folder structure with VSC .... then doing some test like with @MichaelDvP and compiling and testing the new binary. I do have Git installed but up to yet I have not understood how to use it. |
sure, no problem. I'll write down some steps tonight. Are you Windows, Linux or OSX? |
WIN10 - Thanks .... |
It's the same if i push to my github. But if i rename the branch, the source assets are ok. |
@proddy |
Just a question before starting testing: I would like to avoid re-entering wlan and other settings. Can I take the factory_settings.ini out to keep my settings when uploading the bin-file after compilation? |
you can just keep the platformio.ini as it is. The settings are stored in the ESP's filesystem and are persisted so when you re-flash it's only updating the application code. |
@proddy |
yes, absolutely. I do many updates each day. Have you changed any settings in platformio? Are you using VSC to upload or via the command line? |
No, up to yet I used the bin-files from github. Just b1 I compiled myself. |
@proddy yes you where right. I restarted all components on my Mesh Network yesterday (Router and all Mesh Repeaters) and since then the ems-esp connects to the nearest Mesh Repeaters (rssi 100). |
@proddy I think we can close this issue. |
before we do, did you change anything? Like use the -D compiler build flag? |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
I upgraded from v3.0.0b1 to v3.0.0b3 yesterday.
Now after approx. one day of operation the webui does not respond anymore. (empty white page - no error displayed)
MQTT is still working as well as the telnet session.
The command interface took approx. 5 secs to respond - that's not the normal bevavior:
ems-esp:/system$ show
Uptime: 000+22:40:46.701
SDK version: v3.3.4-432-g7a85334d8
CPU frequency: 240 MHz
Free heap: 94296 bytes
WiFi: Connected
SSID: xxxxxx
BSSID: DC:39:6F:BF:DC:ED
RSSI: -79 dBm (42 %)
MAC address: F0:08:D1:D7:E7:70
Hostname: ems-esp
IPv4 address: 192.168.178.71/255.255.255.0
IPv4 gateway: 192.168.178.1
IPv4 nameserver: 192.168.178.1
Ethernet: disconnected
Syslog: disabled
The text was updated successfully, but these errors were encountered: