softypit / esp32_mqtt_eq3

esp32-based mqtt node to control EQ-3 BLE TRVs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash after a day

MeisterQ opened this issue · comments

I always get a crash of my ESP32 after a day.

I cant watch it via Serial, because its not connected to my PC directly.

If i open a Serialport when its connected, the ESP is always restarting.

Im controlling the ESP via Node-Red and sending a "unlock" each 15 minutes to 2 devices.

The ESP is not responding anymore untill im resetting the device.

commented

Are you using the latest version 1.20?

Are you using the latest version 1.20?

Yes.

You can close that topic.

I used a pre-release-OS of my FritzBox!7590 that made the ESP crash. After updating to a newer OS its working.

commented

Do you know what the fritzbox was doing to cause the ESP to crash? It would be good to understand if there is something that could be changed in the ESP code to prevent the crash.

I have no clue. Mostly it happend at the nighttime. So i guess it was only busy with DSL and WiFI

Can you pls try this release: https://github.com/Floyddotnet/esp32_mqtt_eq3/releases/tag/v1.20-dev

Features are the same as v1.20 but used the newest SDK release with some bugfixes. Maybe this error is solved upstream.

Can you pls try this release: https://github.com/Floyddotnet/esp32_mqtt_eq3/releases/tag/v1.20-dev

Features are the same as v1.20 but used the newest SDK release with some bugfixes. Maybe this error is solved upstream.

What kind of bugfixes?

For example:
espressif/esp32-wifi-lib@da0fa33
espressif/esp32-wifi-lib@0c5f3d4
espressif/esp32-wifi-lib@630ff82

  • Fix issue which causes an ESP32 in station mode to disconnect from certain APs which announce two SSIDs.
  • Fix occasional failure of esp_restart() or esp_wifi_stop() in Wi-Fi/BT coexist mode.
  • Fix BT hardware coexistence problems where disabling previously active Bluetooth controller causes WiFi to not operate correctly
  • Fix occasional watchdog timeout in WiFi when software coexistence is enabled
  • Fix issue where BT may stop receiving data if software coexistence is enabled
  • Fix WiFi memory leak
    .....

For example:
espressif/esp32-wifi-lib@da0fa33
espressif/esp32-wifi-lib@0c5f3d4
espressif/esp32-wifi-lib@630ff82

* Fix issue which causes an ESP32 in station mode to disconnect from certain APs which announce two SSIDs.

* Fix occasional failure of esp_restart() or esp_wifi_stop() in Wi-Fi/BT coexist mode.

* Fix BT hardware coexistence problems where disabling previously active Bluetooth controller causes WiFi to not operate correctly

* Fix occasional watchdog timeout in WiFi when software coexistence is enabled

* **Fix issue where BT may stop receiving data if software coexistence is enabled**

* **Fix WiFi memory leak**
  .....

Hey,

after uploading your files, my ESP wont connect to wifi anymore, but tells me, its connected to MQTT.

Im not receiving any data from my valves, also i cannot send anything.

Im watching via serial while publishing commands to the esp

This is strange. All my unit tests complete with this version. Can you please create an issue https://github.com/Floyddotnet/esp32_mqtt_eq3/issues and upload the serial output? With configuration do you use for MQTT? With or without username, password?

commented

I merged and gave this a try on my test esp. Looks good. Many thanks.
There is an issue with previous config when using the new mqtt client however. I used a simple x.x.x.x ip address for mqtt url but the new client needs to know which protocol. For TCP MQTT the url needs to change to mqtt://x.x.x.x and for websocket wss://x.x.x.x. I will implement a default modifier to apply mqtt:// to any url not including a protocol identifier. This should allow upgrade to this new version without the need to reconfigure.

Thanks, i restore the support for the simple ip oder host mqtt urls with this pull request: #17

Btw, @MeisterQ report an issue: Floyddotnet#2 (Im always getting response with "TRV not available" when i send 2 commands for 2 devices.)

I can starting to investigate this issue at the weekend but if you want you can also take a look at this. Your are more conform with the bluetooth code and maybe you can findout this faster then i. :-)

Thank you for very good project.
I want to bump this topic. I've installed latest 1.42-beta from repo and my ESP32 crashes randomly. It only reboots (not so bad, I use mqtt with known configuration, it works after restart) or crashes (very bad) and I have to restart it manually.
I am quite new in ESP32 topic, so can you just write in README.md how to debug ESP32 and your software to understand the nature of the problem and give you feedback? Thanks in advice.

commented

The first step would be to run the ESP with the serial monitor connected. That should give you some clue as to what is happening when it crashes or reboots.