-
Notifications
You must be signed in to change notification settings - Fork 41
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
Device often offline #479
Comments
I have the same problem since I use ESPSomfy. |
Logs collected Radio Pins Configured! |
Thx for collecting the log, I bet I have a similar issue even if so far I was not yet able to gather it. |
Which ESP32 do you have? This log seems to indicate that initializing the wifi chip. Can you check your router logs to see if the connection refused to issue an IP address. Somewhere between the time it initialized the Wifi and the network response the (~7seconds) the connection dropped but the wifi library appears to have corrupted the code segment. Consequently, this is also the response time for the watchdog timer to reset but 7 seconds is a crazy long time for a connection to handshake with your AP. The reset should have reconnected on startup though unless it is sending it into the same sequence for connection. |
@rstrouse, is there a way to retrieve logs remotely ? |
Unfortunately at this time I do not know of a solution that does not require creating code to send the logs over http. There are libraries that do this but they are not really compatible with the receive portion of the code and eat up way too much space. When I get some time I may look into creating something over the socket that ties to the serial output. |
This is the log form today, is still working for the moment but I see 2 strange values:
vs
Shouldn't Max and Min be always similar if not the same ? Full log:
|
No those values represent different aspects of the heap. The max heap value is the maximum contiguous allocation space without fragments. The min heap is the lowest threshold memory reached. And the free heap is the total available memory. The latter two values represent all blocks of memory. Min, max, and free are used for different purposes. For instance, if free memory continues to steadily drop over time then this is an indication of a memory leak. I max memory tends to drop over time then this indicates fragmentation and inefficiency on the memory use. Keep in mind the Wi-Fi and http client libraries will allocate memory and only free it periodically to maintain performance. This creates some level of fragmentation that should recover over time. |
Hardware
ESP32
Firmware version
v2.4.6
Application version
v2.4.6
What happened? What did you expect to happen?
I often find the device offline; wifi connection is not re-established so I bet it somehow crash or have a memory leak or similar.
Can you suggest a way to properly investigate what happens ?
How to reproduce it (step by step)
Logs
No response
The text was updated successfully, but these errors were encountered: