Deep Sleep for ESP32

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
kohleIT
Normal user
Posts: 23
Joined: 25 Jul 2021, 22:45

Deep Sleep for ESP32

#1 Post by kohleIT » 26 Jul 2021, 14:41

Hallo,

I started gaining knowledge with ESP Easy couple weeks ago. I have an ESP32 running with the “Mega” image. I need to bring the ESP32 in the deep sleep mode for 4h.
Can someone help me to get in the right direction?
In the forum I read some distraction information that the max tine is around 1,5h (can’t remember the exact number).
What is the simple’s way to get the ESP to deep sleep for 4h? (w. ESP Easy)
THX for any answer
Br

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Deep Sleep for ESP32

#2 Post by Ath » 26 Jul 2021, 16:13

You should be able to use the 'deepsleep,<time_ms>' command, either from rules or from the Tools page. The sleep time should be specified in milliseconds. What is the maximum time you have achieved so far?
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Deep Sleep for ESP32

#3 Post by Ath » 26 Jul 2021, 22:26

It seems I misinterpreted the source, and the syntax should be 'deepsleep,<time_sec>' so the sleep time is specified in seconds instead of milliseconds. The argument for the start of deepsleep is an int, so meaning the max. number that can be passed is 2147483647, but possibly, because of a cast issue in the code, it may be limited to double that value in microseconds (the unit size to be passed to the ESP32 deepsleep function), so that the maximum sleep time would be ~71 minutes.
Can you try using the command 'deepsleep,14400' (that should be 4 hours in seconds) and measure the time it takes to wake up?
/Ton (PayPal.me)

kohleIT
Normal user
Posts: 23
Joined: 25 Jul 2021, 22:45

Re: Deep Sleep for ESP32

#4 Post by kohleIT » 27 Jul 2021, 06:15

hi

please see the attached picture:
The high Value is not getting accapted
:-(
Did I misunderstood where to enter the deep Sleep ?
Attachments
Unbenannt.PNG
Unbenannt.PNG (23.62 KiB) Viewed 10902 times

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Deep Sleep for ESP32

#5 Post by Ath » 27 Jul 2021, 08:57

My intention was to enter the command 'deepsleep,14400' in the Command field on the Tools tab, and press Submit. After 30 seconds the unit should go into sleep mode, and after a while wake up again. The duration of that 'while' would be interesting to know.

The Sleep Mode settings should be reset to default (not active) to not interfere. Those 4294 seconds are the max. duration that is supported by ESP8266, I think, but that is not actually applicable for ESP32. (And will need a change once the deepsleep is fixed for ESP32)
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Deep Sleep for ESP32

#6 Post by TD-er » 27 Jul 2021, 11:28

I am not 100% the deepsleep for ESP32 is using all features of the ESP32.
This limit of roughly 71 minutes does look a lot like the old limit of ESP8266.

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Deep Sleep for ESP32

#7 Post by Ath » 27 Jul 2021, 21:47

I have created a PR to fix the maximum that can be set using the 'deepsleep' command. (Config page is already using the max. value allowed).

If desired I can provide a download for a .bin file, what build have you uploaded? (That's visible on the Info page.)
/Ton (PayPal.me)

kohleIT
Normal user
Posts: 23
Joined: 25 Jul 2021, 22:45

Re: Deep Sleep for ESP32

#8 Post by kohleIT » 28 Jul 2021, 05:40

Ath wrote: 27 Jul 2021, 08:57 My intention was to enter the command 'deepsleep,14400' in the Command field on the Tools tab, and press Submit. After 30 seconds the unit should go into sleep mode, and after a while wake up again. The duration of that 'while' would be interesting to know.

The Sleep Mode settings should be reset to default (not active) to not interfere. Those 4294 seconds are the max. duration that is supported by ESP8266, I think, but that is not actually applicable for ESP32. (And will need a change once the deepsleep is fixed for ESP32)
hello
I entered in the mentioned command line: deepsleep,10. My expectation would be that the mC is going down and sleep for 10 seconds. After the 10 seconds the mC should awake and do the job and go sleep afterwards. (the mC is not going to sleep any more after one sleep cycle)
To confirm the working I have done a continuous ping to detect when the mC is sleeping and when the mC is awake.
I am sorry – but it does not work like I thought. The device it stays awake. Would i need to solve this with rules?!?
is this behavior on purpose?

Please see the attached log
Attachments
Unbenannt2.PNG
Unbenannt2.PNG (170.56 KiB) Viewed 10854 times

kohleIT
Normal user
Posts: 23
Joined: 25 Jul 2021, 22:45

Re: Deep Sleep for ESP32

#9 Post by kohleIT » 28 Jul 2021, 06:02

Ath wrote: 27 Jul 2021, 21:47 I have created a PR to fix the maximum that can be set using the 'deepsleep' command. (Config page is already using the max. value allowed).

If desired I can provide a download for a .bin file, what build have you uploaded? (That's visible on the Info page.)
I used following Firmware:

Code: Select all

Firmware
Build:⋄	20113 - Mega32
Binary Filename:⋄	ESP_Easy_mega_20210503_custom_ESP32_4M316k
But I was detecting that this Firmware does not include the DHT22 / AM2302 sensor.

It would be super cool to get a bin with an fix for:

Code: Select all

Build:⋄	20113 - Mega32
System Libraries:⋄	ESP32 SDK v3.2.3-14-gd3e562907
Git Build:⋄	
Plugin Count:⋄	47 [Normal]
Build Origin:	Travis
Build Time:⋄	May 3 2021 11:30:09
Binary Filename:⋄	[u][b]ESP_Easy_mega_20210503_normal_ESP32_4M316k[/b][/u]
Build Platform:⋄	Linux-5.4.0-54-generic-x86_64-with-glibc2.29
Git HEAD:⋄	mega-20210503_aacae49

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Deep Sleep for ESP32

#10 Post by Ath » 28 Jul 2021, 09:30

The deepsleep command is a 'run as fired', so sending that command will only execute it once. If you would set that value in the Config page you should be able to set it to a reasonable time, like 3600 seconds (1 hour), and it will wake up and go to sleep again.

The build from last nights Github Actions of PR 3720 is attached here, including both the OTA update .bin file and the full update (includes '-factory' in the filename).
Attachments
ESPEasy_20210727_normal_ESP32_4M316k.zip
(823.98 KiB) Downloaded 165 times
/Ton (PayPal.me)

kohleIT
Normal user
Posts: 23
Joined: 25 Jul 2021, 22:45

Re: Deep Sleep for ESP32

#11 Post by kohleIT » 28 Jul 2021, 14:30

Ath wrote: 28 Jul 2021, 09:30 The deepsleep command is a 'run as fired', so sending that command will only execute it once. If you would set that value in the Config page you should be able to set it to a reasonable time, like 3600 seconds (1 hour), and it will wake up and go to sleep again.

The build from last nights Github Actions of PR 3720 is attached here, including both the OTA update .bin file and the full update (includes '-factory' in the filename).

thx for the quick fix!! very Cool!! THX!!

I would have also an further input:
Sleep awake time is limited to 255 sec. Is there a specific reason? Or could that also got unlocked ?
Right now, the 4h test is running
Attachments
Unbenannt3.PNG
Unbenannt3.PNG (28.59 KiB) Viewed 10801 times

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Deep Sleep for ESP32

#12 Post by Ath » 28 Jul 2021, 15:29

The 'Sleep awake time' setting is stored in an 'uint8_t' type, so only 0..255 possible there. That's somewhat less easy to fix. I'm thinking of adding also the feature of selecting the wake-source for deepsleep (touch pins f.e.), and that will require a change in the settings structure too, so I'd probably combine these features in the same change.

Alternative for a longer wake-time would be to set a timer at System#Boot event to start the deepsleep at 270 seconds from boot (there's a 30 second delay before deepsleep actually kicks in, right?). But that's a kind of work-around.

You can also execute your measurements/activity, and start deepsleep from the rule after completing your processing.
What is the use-case you are trying to achieve?
/Ton (PayPal.me)

kohleIT
Normal user
Posts: 23
Joined: 25 Jul 2021, 22:45

Re: Deep Sleep for ESP32

#13 Post by kohleIT » 28 Jul 2021, 19:09

Hello

The Sleep time with 14400 works well now with the fix you offered. For my actual Project there is no need to extend the Sleep awake time as I am expecting to get all done within the 255 seconds.
Thank you very much to take the effort!
Just for a dummy user – how I could do this fix by myself? Could you point me in a direction where I can learn to modify the project and generate such *.bin file?
Just some high-level hint would be already sufficient.

Br

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Deep Sleep for ESP32

#14 Post by TD-er » 28 Jul 2021, 20:07

The sleep awake time should not be needed to set to a longer time.
It is a minimum awake time before going back to periodical sleep again.
If you need it to be awake for a longer time, you should also call the deepsleep command from rules.

This sleep awake timer is a tweak/tuning parameter for devices to stay awake just long enough for rather slow WiFi network connects and not more.
If you need more sophisticated control over it, you can do it in the rules.
You can even get a more optimal use of your battery then as you can act on WiFi#connected events and thus send your data and call the deepsleep command as soon as you're done.
This is way more elegant and efficient compared to some "minimal awake time and hope it is enough" scenario which often leads to longer awake times than actually needed.

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Deep Sleep for ESP32

#15 Post by Ath » 28 Jul 2021, 20:40

kohleIT wrote: 28 Jul 2021, 19:09 Just for a dummy user – how I could do this fix by myself? Could you point me in a direction where I can learn to modify the project and generate such *.bin file?
Just some high-level hint would be already sufficient.
Well, there are a few 'prerequisites', it is really helpful if you know the c++ programming language, and know how to use git & github as a source control system. Then you'd best install VSCode (Visual Studio Code) with the PlatformIO programming environment and a couple more plugins as described in the ESPEasy documentation. (And TD-er also shared a Youtube movie on how to set up that PlatformIO stuff in VSCode. Install the Git command-line tools first, they are required.)
Now it gets a bit hairy ;)
Then, with all tooling set up, create a fork of the ESPEasy github reponto your own repo, clone that to your computer, optionally, add an upstream link to the ESPEasy repo, create a branch to store your work, improve any code local, and build it, and push that to origin (your own repo). After that, go to the ESPEasy github page, and create a Pull Request in the ESPEasy repo, that, after being scrutinized by TD-er and sometimes others, you apply any suggestions & fixes on, and eventually can be merged into the current master branch (called 'mega' on this repo)

If this all sounds like Chinese, Swahili or rocket science (meaning: things you don't understand) to you (or too much trouble :lol:), then just skip this part, and keep asking for improvements in the forum, or report bugs in the ESPEasy issue tracker on Github. :D
Last edited by Ath on 28 Jul 2021, 22:04, edited 1 time in total.
/Ton (PayPal.me)

kohleIT
Normal user
Posts: 23
Joined: 25 Jul 2021, 22:45

Re: Deep Sleep for ESP32

#16 Post by kohleIT » 28 Jul 2021, 22:02

thx for the guideline!
Parts of it sounds Swahili for me like the topic “github reponto”. It sounds complex to get it running on my PC therefore I think I will push it out to the winter season – even if we have fun in Winter in Austria too.
:-)

Haldi_2
Normal user
Posts: 53
Joined: 24 Aug 2020, 18:10

Re: Deep Sleep for ESP32

#17 Post by Haldi_2 » 01 Aug 2021, 19:10

Ath wrote: 28 Jul 2021, 09:30 The build from last nights Github Actions of PR 3720 is attached here, including both the OTA update .bin file and the full update (includes '-factory' in the filename).
That build works WAY Better than the official release 2021 05 03.
Using a TTGO T18v3 with 18650 battery and BMP280 sensor i've had issues that the ESP32 went back into deep sleep before it fully transmitted BMP280 values, while it did always properly send analog battery value.
Now it works like a dream even when 1sec awake time is set!

Code: Select all

19:04:11.831 -> ets Jun  8 2016 00:22:57
19:04:11.831 -> 
19:04:11.831 -> rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
19:04:11.831 -> configsip: 0, SPIWP:0xee
19:04:11.831 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
19:04:11.831 -> mode:DOUT, clock div:1
19:04:11.831 -> load:0x3fff0018,len:4
19:04:11.831 -> load:0x3fff001c,len:1044
19:04:11.831 -> load:0x40078000,len:8896
19:04:11.831 -> load:0x40080400,len:5816
19:04:11.831 -> entry 0x400806ac
19:04:12.394 ->
19:04:12.394 -> 
INIT : Booting version:  (ESP32 SDK v3.3.5-1-g85c43024c)
19:04:12.394 -> 34 : Info   : INIT : Free RAM:306032
19:04:12.394 -> 36 : Info   : INIT : Deep Sleep #1 Last Action before Reboot: Intended Reboot: DeepSleep Last systime: 38 - Restart Reason: CPU0: Deep Sleep, Wakeup reason (901) CPU1: for APP CPU, reseted by PRO CPU
19:04:12.440 -> 37 : Info   : FS   : Mounting...
19:04:12.440 -> 70 : Info   : CRC  : SecuritySettings CRC   ...OK 
19:04:12.487 -> 74 : Info   : Time set to 38.000 Time adjusted by 37927.00 msec. Wander: 10.54 msec/second Source: RTC at boot
19:04:12.487 -> 75 : Info   : Current Time Zone:  DST time start: 1970-03-29 02:00:00 offset: 120 min STD time start: 1970-10-25 03:00:00 offset: 60 min
19:04:12.533 -> 76 : Info   : Local time: 1970-01-01 01:00:38
19:04:12.628 -> 77 : Info   : WiFi : Start network scan all channels
19:04:12.628 -> 124 : Info   : WiFi : STA Started
19:04:12.675 -> 137 : Info   : INIT : Free RAM:248628
19:04:12.675 -> 139 : Info   : INIT : I2C
19:04:12.675 -> 139 : Info   : INIT : SPI not enabled
19:04:12.675 -> 276 : Info   : INFO : Plugins: 47 [Normal] (ESP32 SDK v3.3.5-1-g85c43024c)
19:04:12.675 -> 277 : Info   : EVENT: System#NoSleep=1
19:04:12.675 -> 295 : Info   : EVENT: System#Wake
19:04:12.675 -> 319 : Info   : Webserver: start
19:04:12.675 -> 323 : Info   : OTA  : Arduino OTA enabled on port 3232
19:04:12.675 -> 325 : Info   : EVENT: System#Boot
19:04:12.768 -> 410 : Info   : ADC  : Analog value: 2153 = 3593
19:04:12.815 -> 465 : Info   : EVENT: Time#Initialized
19:04:12.952 -> 597 : Info   : EVENT: TaskInit#BMP280=1,1
19:04:13.045 -> 673 : Info   : EVENT: TaskInit#bat=2,1
19:04:13.138 -> 749 : Info   : EVENT: bat#bat=3593
19:04:13.557 -> 1174 : Info   : BMx280 : Detected BMP280
19:04:14.071 -> 1717 : Info   : WD   : Uptime 0 ConnectFailures 0 FreeMem 231008 WiFiStatus WL_DISCONNECTED 6 ESPeasy internal wifi status: DISCONNECTED
19:04:14.724 -> 2358 : Info   : WiFi : Scan finished, found: 3
19:04:14.724 -> 2361 : Info   : WiFi : Best AP candidate: bring Cookies A0:04:60:##:##:## Ch:1 (-66dBm) WPA2/PSK
19:04:14.724 -> 2362 : Info   : WIFI : Connecting bring Cookies A0:04:60:##:##:## Ch:1 (-66dBm) WPA2/PSK attempt #0
19:04:14.771 -> 2372 : Info   : WIFI : Arduino wifi status: WL_DISCONNECTED 6 ESPeasy internal wifi status: DISCONNECTED
19:04:15.701 -> 3325 : Info   : BMP280 : Address: 0x76
19:04:15.701 -> 3328 : Info   : BMP280 : Temperature: 30.6
19:04:15.701 -> 3331 : Info   : BMP280 : Barometric Pressure: 1009
19:04:15.748 -> 3404 : Info   : EVENT: BMP280#Temperature=30.6
19:04:15.889 -> 3507 : Info   : EVENT: BMP280#=0
19:04:15.981 -> 3632 : Info   : EVENT: BMP280#Pressure=1009
19:04:17.750 -> 5375 : Info   : WIFI : Connected! AP: bring Cookies (A0:04:60:##:##:##) Ch: 1 Duration: 3010 ms
19:04:17.750 -> 5376 : Info   : WIFI : Arduino wifi status: WL_IDLE_STATUS 0 ESPeasy internal wifi status: Conn. 
19:04:17.750 -> 5399 : Info   : EVENT: WiFi#ChangedAccesspoint
19:04:17.889 -> 5506 : Info   : EVENT: WiFi#ChangedWiFichannel
19:04:18.123 -> 5767 : Info   : WIFI : DHCP IP: 192.168.1.77 (ESP32Battery) GW: 192.168.1.1 SN: 255.255.255.0   duration: 391 ms
19:04:18.123 -> 5769 : Info   : WIFI : Starting mDNS...
19:04:18.169 -> 5770 : Info   : WIFI : mDNS started, with name: ESP32Battery.local
19:04:18.169 -> 5774 : Info   : firstLoopConnectionsEstablished
19:04:18.169 -> 5779 : Info   : EVENT: WiFi#Connected
19:04:18.169 -> 5791 : Info   : WD   : Uptime 1 ConnectFailures 0 FreeMem 227804 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
19:04:18.216 -> 5831 : Info   : EVENT: System#NoSleep=1
19:04:19.144 -> 6775 : Info   : EVENT: System#Sleep
19:04:19.144 -> 6786 : Info   : SLEEP: Powering down to deepsleep...
19:04:20.262 -> 7888 : Info   : WIFI : Set WiFi to OFF
19:04:20.262 -> 7892 : Info   : WiFi : STA Stopped
19:04:20.262 -> 7893 : Info   : WiFi : STA Stopped


I've also had some issues with the sensor failing to boot properly after deepsleep. It was stuck somewhere, the blue light was showing activity but it didn't boot properly.
Hope this won't happen again on this build. If it does i'll have to start taking logs.

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Deep Sleep for ESP32

#18 Post by Ath » 01 Aug 2021, 19:32

Haldi_2 wrote: 01 Aug 2021, 19:10 That build works WAY Better than the official release 2021 05 03.
...
I've also had some issues with the sensor failing to boot properly after deepsleep. It was stuck somewhere, the blue light was showing activity but it didn't boot properly.
Hope this won't happen again on this build. If it does i'll have to start taking logs.
That is to be expected, as the 20210503 release is known to have many Wifi issues, that have been solved since then by TD-er.

Please stand-by for a new release that will be made available 'Real Soon Now' (tm) as TD-er is finalizing stuff to publish it.
/Ton (PayPal.me)

Haldi_2
Normal user
Posts: 53
Joined: 24 Aug 2020, 18:10

Re: Deep Sleep for ESP32

#19 Post by Haldi_2 » 02 Aug 2021, 07:07

i think my syslog catched something unreadable ^^

Code: Select all

2021-08-02 06:57:57	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : WiFi services initialized
2021-08-02 06:57:57	User.Notice	192.168.1.77	ESP32Battery EspEasy: WIFI : Starting mDNS...
2021-08-02 06:57:57	User.Notice	192.168.1.77	ESP32Battery EspEasy: WIFI : mDNS started, with name: ESP32Battery.local
2021-08-02 06:57:57	User.Notice	192.168.1.77	ESP32Battery EspEasy: firstLoopConnectionsEstablished
2021-08-02 06:57:57	User.Notice	192.168.1.77	ESP32Battery EspEasy: EVENT: WiFi#Connected
2021-08-02 06:57:57	User.Debug	192.168.1.77	ESP32Battery EspEasy: EVENT: WiFi#Connected Processing time:14 milliSeconds
2021-08-02 06:57:57	User.Debug	192.168.1.77	ESP32Battery EspEasy: Memtrace
0: lowest: 224644  PluginCall_s (1)-> 228876 PluginCall (18)-> 228888 LoadControllerSettings-> 228040 LoadFromFile-> 228020 PluginCall (18)-> 228384 PluginCall (22)-> 228888 PluginCall_s (0)-> 228876 PluginCall_s (1)-> 228876 PluginCall (18)-> 228888 LoadControllerSettings-> 226516 LoadFromFile-> 227516 PluginCall (18)-> 228332 PluginCall (22)-> 224660 PluginCall_s (0)-> 224644 PluginCall_s (1)-> 224644 
2021-08-02 06:57:57	User.Debug	192.168.1.77	ESP32Battery EspEasy: 1: lowest: 224644  PluginCall_s (0)-> 228876 PluginCall_s (1)-> 228876 PluginCall (18)-> 228888 LoadControllerSettings-> 228040 LoadFromFile-> 228020 PluginCall (18)-> 228384 PluginCall (22)-> 228888 PluginCall_s (0)-> 228876 PluginCall_s (1)-> 228876 PluginCall (18)-> 228888 LoadControllerSettings-> 226516 LoadFromFile-> 227516 PluginCall (18)-> 228332 PluginCall (22)-> 224660 PluginCall_s (0)-> 224644 
2021-08-02 06:57:57	User.Debug	192.168.1.77	ESP32Battery EspEasy: 2: lowest: 224644  LoadControllerSettings-> 228040 LoadFromFile-> 228020 PluginCall (18)-> 228384 PluginCall (22)-> 228888 PluginCall_s (0)-> 228876 PluginCall_s (1)-> 228876 PluginCall (18)-> 228888 LoadControllerSettings-> 226516 LoadFromFile-> 227516 PluginCall (18)-> 228332 PluginCall (22)-> 224660 PluginCall_s (0)-> 224644 PluginCall_s (1)-> 224644 PluginCall (5)-> 224660 PluginCall_s (0)-> 224644 
2021-08-02 06:57:57	User.Notice	192.168.1.77	ESP32Battery EspEasy: WD   : Uptime 1 ConnectFailures 0 FreeMem 224476 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
2021-08-02 06:57:57	User.Notice	192.168.1.77	ESP32Battery EspEasy: EVENT: System#NoSleep=1
2021-08-02 06:57:57	User.Debug	192.168.1.77	ESP32Battery EspEasy: EVENT: System#NoSleep=1 Processing time:21 milliSeconds
2021-08-02 06:57:57	User.Debug	192.168.1.77	ESP32Battery EspEasy: Read settings: ControllerSettings index: 0
2021-08-02 06:57:57	User.Debug	192.168.1.77	ESP32Battery EspEasy: UDP  : C010 connecting to 192.168.1.2:8089
2021-08-02 06:57:57	User.Debug	192.168.1.77	ESP32Battery EspEasy: Read settings: ControllerSettings index: 0
2021-08-02 06:57:57	User.Debug	192.168.1.77	ESP32Battery EspEasy: UDP  : C010 connecting to 192.168.1.2:8089
2021-08-02 06:57:57	User.Debug	192.168.1.77	ESP32Battery EspEasy: Read settings: ControllerSettings index: 0
2021-08-02 06:57:57	User.Debug	192.168.1.77	ESP32Battery EspEasy: UDP  : C010 connecting to 192.168.1.2:8089
2021-08-02 06:57:57	User.Debug	192.168.1.77	ESP32Battery EspEasy: Read settings: ControllerSettings index: 0
2021-08-02 06:57:57	User.Debug	192.168.1.77	ESP32Battery EspEasy: UDP  : C010 connecting to 192.168.1.2:8089
2021-08-02 06:57:58	User.Notice	192.168.1.77	ESP32Battery EspEasy: SLEEP: Entering deep sleep in 30 seconds.
2021-08-02 06:57:58	User.Notice	192.168.1.77	ESP32Battery EspEasy: EVENT: System#NoSleep=30
2021-08-02 06:57:58	User.Debug	192.168.1.77	ESP32Battery EspEasy: EVENT: System#NoSleep=30 Processing time:15 milliSeconds
2021-08-02 06:57:58	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: @V||x9
2021-08-02 06:57:58	User.Debug	192.168.1.77	ESP32Battery EspEasy:  @V||x9 8@@F}xf'@{>?^^04Ox7 0a #.E;(E" A He#DU"F  %AUEEDSAQAE(+Q*E'3D0D DJQ&E)AE($Q5$A)QEU)IQ$ECUE#ED?_SUi]mWewo^!dWeD)I)UWEoMwW
2021-08-02 06:57:58	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 8 Par2: 8 Par3: 0 Par4: 0 Par5: 0
2021-08-02 06:57:58	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown:  @V||x9 8@@F}xf'@{>?^^04Ox7 0a #.E;(E" A He#DU"F  %AUEEDSAQAE(+Q*E'3D0D DJQ&E)AE($Q5$A)QEU)IQ$ECUE#ED?_SUi]mWewo^!dWeD)I)UWEoMwW
2021-08-02 06:57:58	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: P@l$$~?>?}?
2021-08-02 06:57:58	User.Debug	192.168.1.77	ESP32Battery EspEasy: P@l$$~?>?}?  ?P8@`0I)  @ h
2021-08-02 06:57:58	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 06:57:58	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: P@l$$~?>?}?  ?P8@`0I)  @ h
2021-08-02 06:57:58	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: A@<P-
2021-08-02 06:57:58	User.Debug	192.168.1.77	ESP32Battery EspEasy: A@<P- l_= 0#)   $$0$$$$$\,D
2021-08-02 06:57:58	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 1073421776 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 06:57:58	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: A@<P- l_= 0#)   $$0$$$$$\,D
2021-08-02 06:57:58	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: D
2021-08-02 06:57:58	User.Debug	192.168.1.77	ESP32Battery EspEasy: D
2021-08-02 06:57:58	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 06:57:58	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: D
2021-08-02 06:57:59	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: GJ
2021-08-02 06:57:59	User.Debug	192.168.1.77	ESP32Battery EspEasy: GJ   @A!l`  @@??jd~$Ia$$$???+!ZZZ.m }k;{@(X87z+sIR?{/0|4>pZ/p?-661L>!6|884@&*
2021-08-02 06:57:59	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 06:57:59	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: GJ   @A!l`  @@??jd~$Ia$$$???+!ZZZ.m }k;{@(X87z+sIR?{/0|4>pZ/p?-661L>!6|884@&*
2021-08-02 06:57:59	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: O
2021-08-02 06:57:59	User.Debug	192.168.1.77	ESP32Battery EspEasy: O,?x-P_ $$~\b77q5355f33171U37317[P
2021-08-02 06:57:59	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 14 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 06:57:59	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: O,?x-P_ $$~\b77q5355f33171U37317[P
2021-08-02 06:57:59	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: &A
2021-08-02 06:57:59	User.Debug	192.168.1.77	ESP32Battery EspEasy:  &A -@DD@W(h `pD0_ }}+
2021-08-02 06:57:59	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 1073421776 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 06:57:59	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown:  &A -@DD@W(h `pD0_ }}+
2021-08-02 06:57:59	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: Y
2021-08-02 06:57:59	User.Debug	192.168.1.77	ESP32Battery EspEasy: Y
2021-08-02 06:57:59	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 06:57:59	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: Y
2021-08-02 06:58:00	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: $|Zd)Z~Wm*
2021-08-02 06:58:00	User.Debug	192.168.1.77	ESP32Battery EspEasy: $|Zd)Z~Wm*
2021-08-02 06:58:00	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 06:58:00	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: $|Zd)Z~Wm*
2021-08-02 06:58:00	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: H!p@@#x!
2021-08-02 06:58:00	User.Debug	192.168.1.77	ESP32Battery EspEasy: H!p@@#x! ToOV'oFpEDL%
2021-08-02 06:58:00	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 06:58:00	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: H!p@@#x! ToOV'oFpEDL%
2021-08-02 06:58:00	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: v6w/lw}wwg@$@xtG"&$>bs"r&6ww\Sww7#0;TCD
2021-08-02 06:58:00	User.Debug	192.168.1.77	ESP32Battery EspEasy: v6w/lw}wwg@$@xtG"&$>bs"r&6ww\Sww7#0;TCD @DDDDDD` ["+w7F1Dwww&Ww5CsDww7.
2021-08-02 06:58:00	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 06:58:00	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: v6w/lw}wwg@$@xtG"&$>bs"r&6ww\Sww7#0;TCD @DDDDDD` ["+w7F1Dwww&Ww5CsDww7.
2021-08-02 06:58:00	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : Set TX power to 13dBm sensitivity: -69dBm RSSI: -61dBm
2021-08-02 06:58:00	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: Z@mw11d(0</@?s.h@p<.
2021-08-02 06:58:00	User.Debug	192.168.1.77	ESP32Battery EspEasy: Z@mw11d(0</@?s.h@p<.
2021-08-02 06:58:00	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 06:58:00	User.Debug	192.168.1.77	ESP32Battery EspEasy: Read settings: TaskSettings index: 1
2021-08-02 06:58:00	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: Z@mw11d(0</@?s.h@p<.
2021-08-02 06:58:00	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : Set TX power to 15dBm sensitivity: -69dBm RSSI: -63dBm
2021-08-02 06:58:03	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : Set TX power to 13dBm sensitivity: -69dBm RSSI: -62dBm
2021-08-02 06:58:03	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : Set TX power to 15dBm sensitivity: -69dBm RSSI: -64dBm
2021-08-02 06:58:03	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: .@@0` @@`.
2021-08-02 06:58:03	User.Debug	192.168.1.77	ESP32Battery EspEasy: .@@0` @@`. HP}X`0@0>,@ `no? w~@(t`6 Z?DdG?Noww_6>l@0H2`""x88?6{j${S8_~o}}~?pI^~o?HFOQ`4@_}$-ZNmw}Ip~k~~1b~~>~^#'?2*w{w_7?: n|<pp
2021-08-02 06:58:03	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 1073421776 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 06:58:03	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: .@@0` @@`. HP}X`0@0>,@ `no? w~@(t`6 Z?DdG?Noww_6>l@0H2`""x88?6{j${S8_~o}}~?pI^~o?HFOQ`4@_}$-ZNmw}Ip~k~~1b~~>~^#'?2*w{w_7?: n|<pp
2021-08-02 06:58:03	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : Set TX power to 13dBm sensitivity: -69dBm RSSI: -62dBm
2021-08-02 06:58:03	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: <NX
2021-08-02 06:58:03	User.Debug	192.168.1.77	ESP32Battery EspEasy: <NX
2021-08-02 06:58:03	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 06:58:03	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: <NX
2021-08-02 06:58:03	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: ?~
2021-08-02 06:58:03	User.Debug	192.168.1.77	ESP32Battery EspEasy: ?~
2021-08-02 06:58:03	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 06:58:03	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: ?~
2021-08-02 06:58:03	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : Set TX power to 15dBm sensitivity: -69dBm RSSI: -63dBm
2021-08-02 06:58:03	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: P1?HKI
2021-08-02 06:58:03	User.Debug	192.168.1.77	ESP32Battery EspEasy: P1?HKI
2021-08-02 06:58:03	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 06:58:03	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: P1?HKI
2021-08-02 06:58:03	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: <p
2021-08-02 06:58:03	User.Debug	192.168.1.77	ESP32Battery EspEasy: <p
2021-08-02 06:58:03	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 06:58:03	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: <p
thats the first thing it captured after the esp32 being stuck and pressed reset button.
The ESPeasy web interface works for about 3-4 seconds then freezes.

Code: Select all

2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : Set TX power to 13dBm sensitivity: -69dBm RSSI: -62dBm
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : WiFi services initialized
2021-08-02 07:04:34	User.Notice	192.168.1.77	ESP32Battery EspEasy: WIFI : Starting mDNS...
2021-08-02 07:04:34	User.Notice	192.168.1.77	ESP32Battery EspEasy: WIFI : mDNS started, with name: ESP32Battery.local
2021-08-02 07:04:34	User.Notice	192.168.1.77	ESP32Battery EspEasy: firstLoopConnectionsEstablished
2021-08-02 07:04:34	User.Notice	192.168.1.77	ESP32Battery EspEasy: EVENT: WiFi#Connected
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: EVENT: WiFi#Connected Processing time:15 milliSeconds
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Memtrace
0: lowest: 225424  PluginCall_s (0)-> 228776 PluginCall_s (1)-> 228776 PluginCall (18)-> 228788 LoadControllerSettings-> 227072 LoadFromFile-> 227104 PluginCall (18)-> 228240 PluginCall (22)-> 225620 PluginCall_s (0)-> 225604 PluginCall_s (1)-> 225604 PluginCall (5)-> 225620 PluginCall_s (0)-> 225604 PluginCall_s (1)-> 225604 PluginCall (30)-> 225620 rulesProcessing-> 225684 rulesProcessingFile-> 225424 
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: 1: lowest: 225376  PluginCall_s (1)-> 225604 PluginCall (5)-> 225620 PluginCall_s (0)-> 225604 PluginCall_s (1)-> 225604 PluginCall (30)-> 225620 rulesProcessing-> 225684 rulesProcessingFile-> 225424 rulesProcessingFile2-> 225488 rulesProcessingFile-> 225668 rulesProcessingFile2-> 225488 rulesProcessingFile-> 225668 rulesProcessingFile2-> 225488 rulesProcessingFile-> 225668 rulesProcessingFile2-> 225488 PluginCall (18)-> 225376 
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: 2: lowest: 225488  LoadControllerSettings-> 227072 LoadFromFile-> 227104 PluginCall (18)-> 228240 PluginCall (22)-> 225620 PluginCall_s (0)-> 225604 PluginCall_s (1)-> 225604 PluginCall (5)-> 225620 PluginCall_s (0)-> 225604 PluginCall_s (1)-> 225604 PluginCall (30)-> 225620 rulesProcessing-> 225684 rulesProcessingFile-> 225424 rulesProcessingFile2-> 225488 rulesProcessingFile-> 225668 rulesProcessingFile2-> 225488 
2021-08-02 07:04:34	User.Notice	192.168.1.77	ESP32Battery EspEasy: WD   : Uptime 1 ConnectFailures 0 FreeMem 223436 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
2021-08-02 07:04:34	User.Notice	192.168.1.77	ESP32Battery EspEasy: EVENT: System#NoSleep=1
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: EVENT: System#NoSleep=1 Processing time:20 milliSeconds
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Read settings: ControllerSettings index: 0
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: UDP  : C010 connecting to 192.168.1.2:8089
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : Set TX power to 15dBm sensitivity: -69dBm RSSI: -63dBm
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: y
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: y  @(B@  $$$$$IKIIm{~%   $$ L
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 1073421840 Par2: 1073421840 Par3: 1073421840 Par4: 1073421840 Par5: 0
2021-08-02 07:04:34	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: y  @(B@  $$$$$IKIIm{~%   $$ L
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: @
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: @ 
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 07:04:34	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: @ 
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: 4B
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: 4B @P!vw7^x~
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 14 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 07:04:34	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: 4B @P!vw7^x~
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Read settings: ControllerSettings index: 0
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: UDP  : C010 connecting to 192.168.1.2:8089
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Read settings: ControllerSettings index: 0
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: UDP  : C010 connecting to 192.168.1.2:8089
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Read settings: ControllerSettings index: 0
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: UDP  : C010 connecting to 192.168.1.2:8089
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: _www]|(
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: _www]|( @@P\>0D PDDDDDDDDDDD"<>\@`DfT@` 
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 1073500304 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 07:04:34	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: _www]|( @@P\>0D PDDDDDDDDDDD"<>\@`DfT@` 
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: <
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: <
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 07:04:34	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: <
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: 0""
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: 0"" aynFH`F@s2<"bVq! "@" L%a!rWQ$ s@ jd"w@
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 07:04:34	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: 0"" aynFH`F@s2<"bVq! "@" L%a!rWQ$ s@ jd"w@
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: @AHA@
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: @AHA@
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 07:04:34	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: @AHA@
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Read settings: TaskSettings index: 0
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: PH
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: PH  @)U:@`&xpAPPAaL`DD""D"D$"..)6([
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 07:04:34	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: PH  @)U:@`&xpAPPAaL`DD""D"D$"..)6([
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: {@1
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: {@1
2021-08-02 07:04:34	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 07:04:34	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: {@1
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: 2
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: 2
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 07:04:35	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: 2
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: !
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: !
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 07:04:35	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: !
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : Set TX power to 13dBm sensitivity: -69dBm RSSI: -62dBm
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: U@0DHh$<4?8
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: U@0DHh$<4?8 " k"DDdnDDdDdDE&`|`t 5fWwnwhg'?|qDWwrwwWqqwsDoyT2wusw
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 1073421840 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 07:04:35	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: U@0DHh$<4?8 " k"DDdnDDdDdDE&`|`t 5fWwnwhg'?|qDWwrwwWqqwsDoyT2wusw
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : Set TX power to 15dBm sensitivity: -69dBm RSSI: -63dBm
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : Set TX power to 13dBm sensitivity: -69dBm RSSI: -62dBm
2021-08-02 07:04:35	User.Notice	192.168.1.77	ESP32Battery EspEasy: SLEEP: Entering deep sleep in 30 seconds.
2021-08-02 07:04:35	User.Notice	192.168.1.77	ESP32Battery EspEasy: EVENT: System#NoSleep=30
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: EVENT: System#NoSleep=30 Processing time:14 milliSeconds
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : Set TX power to 15dBm sensitivity: -69dBm RSSI: -63dBm
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : Set TX power to 13dBm sensitivity: -69dBm RSSI: -62dBm
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: C@
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy:  C@ X@ ZDDDDD*]qoiqj!sw?2Fi#zwXA:D,Oka`L+G?6x?C\kuyn' Dw8wro ?
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 1073421776 Par2: 1073421776 Par3: 0 Par4: 0 Par5: 0
2021-08-02 07:04:35	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown:  C@ X@ ZDDDDD*]qoiqj!sw?2Fi#zwXA:D,Oka`L+G?6x?C\kuyn' Dw8wro ?
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: ~/
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: ~/
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 07:04:35	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: ~/
2021-08-02 07:04:35	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : Set TX power to 15dBm sensitivity: -69dBm RSSI: -63dBm
2021-08-02 07:04:36	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : Set TX power to 13dBm sensitivity: -69dBm RSSI: -62dBm
2021-08-02 07:04:36	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : Set TX power to 15dBm sensitivity: -69dBm RSSI: -63dBm
2021-08-02 07:04:36	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: kQ
2021-08-02 07:04:36	User.Debug	192.168.1.77	ESP32Battery EspEasy: kQ @ A;\}4I?xKISII)$dIo6?__?v7uwwwwwUUwv|O{E~
2021-08-02 07:04:36	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 1073421776 Par2: 1073421776 Par3: 0 Par4: 0 Par5: 0
2021-08-02 07:04:36	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: kQ @ A;\}4I?xKISII)$dIo6?__?v7uwwwwwUUwv|O{E~
2021-08-02 07:04:36	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: 9S*)
2021-08-02 07:04:36	User.Debug	192.168.1.77	ESP32Battery EspEasy: 9S*),@A
2021-08-02 07:04:36	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 1073421776 Par2: 0 Par3: 0 Par4: 0 Par5: 0
2021-08-02 07:04:36	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: 9S*),@A
2021-08-02 07:04:36	User.Debug	192.168.1.77	ESP32Battery EspEasy: Command: O94|~=Gp
2021-08-02 07:04:36	User.Debug	192.168.1.77	ESP32Battery EspEasy: O94|~=Gp T,xO$&  $$$LI_|U1s?.fF1U5UUUU
2021-08-02 07:04:36	User.Debug	192.168.1.77	ESP32Battery EspEasy: Par1: 1073421776 Par2: 1073421776 Par3: 1073421776 Par4: 0 Par5: 0
2021-08-02 07:04:36	User.Notice	192.168.1.77	ESP32Battery EspEasy: Command unknown: O94|~=Gp T,xO$&  $$$LI_|U1s?.fF1U5UUUU
2021-08-02 07:04:36	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : Set TX power to 13dBm sensitivity: -69dBm RSSI: -62dBm
2021-08-02 07:04:36	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : Set TX power to 15dBm sensitivity: -69dBm RSSI: -63dBm
2021-08-02 07:04:37	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : Set TX power to 13dBm sensitivity: -69dBm RSSI: -62dBm
2021-08-02 07:04:37	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : Set TX power to 15dBm sensitivity: -69dBm RSSI: -63dBm

not matter how many times i press reset, the only way getting out of that is connecting USB and then pressing reset.
not even removing battery helps.


So yeah... i'll guess i'll just wait for the new build :)


edit: this one here is after plugging USB. 2nd sleep cycle.
fully working again.

Code: Select all

2021-08-02 07:09:55	User.Debug	192.168.1.77	ESP32Battery EspEasy: WiFi : WiFi services initialized
2021-08-02 07:09:55	User.Notice	192.168.1.77	ESP32Battery EspEasy: WIFI : Starting mDNS...
2021-08-02 07:09:55	User.Notice	192.168.1.77	ESP32Battery EspEasy: WIFI : mDNS started, with name: ESP32Battery.local
2021-08-02 07:09:55	User.Notice	192.168.1.77	ESP32Battery EspEasy: firstLoopConnectionsEstablished
2021-08-02 07:09:55	User.Notice	192.168.1.77	ESP32Battery EspEasy: EVENT: BMP280#=0
2021-08-02 07:09:55	User.Debug	192.168.1.77	ESP32Battery EspEasy: EVENT: BMP280#=0 Processing time:21 milliSeconds
2021-08-02 07:09:55	User.Debug	192.168.1.77	ESP32Battery EspEasy: Memtrace
0: lowest: 225560  rulesProcessingFile-> 228012 rulesProcessingFile2-> 228392 rulesProcessingFile-> 228244 rulesProcessingFile2-> 228044 rulesProcessingFile-> 228220 rulesProcessingFile2-> 228044 PluginCall (22)-> 225660 PluginCall_s (0)-> 225640 PluginCall_s (1)-> 225640 PluginCall (5)-> 225660 PluginCall_s (0)-> 225640 PluginCall_s (1)-> 225640 PluginCall (30)-> 225660 rulesProcessing-> 225816 rulesProcessingFile-> 225560 
2021-08-02 07:09:55	User.Debug	192.168.1.77	ESP32Battery EspEasy: 1: lowest: 225620  rulesProcessingFile2-> 228392 rulesProcessingFile-> 228244 rulesProcessingFile2-> 228044 rulesProcessingFile-> 228220 rulesProcessingFile2-> 228044 PluginCall (22)-> 225660 PluginCall_s (0)-> 225640 PluginCall_s (1)-> 225640 PluginCall (5)-> 225660 PluginCall_s (0)-> 225640 PluginCall_s (1)-> 225640 PluginCall (30)-> 225660 rulesProcessing-> 225816 rulesProcessingFile-> 225560 rulesProcessingFile2-> 225620 
2021-08-02 07:09:55	User.Debug	192.168.1.77	ESP32Battery EspEasy: 2: lowest: 225620  rulesProcessingFile2-> 228044 rulesProcessingFile-> 228220 rulesProcessingFile2-> 228044 PluginCall (22)-> 225660 PluginCall_s (0)-> 225640 PluginCall_s (1)-> 225640 PluginCall (5)-> 225660 PluginCall_s (0)-> 225640 PluginCall_s (1)-> 225640 PluginCall (30)-> 225660 rulesProcessing-> 225816 rulesProcessingFile-> 225560 rulesProcessingFile2-> 225620 rulesProcessingFile-> 225796 rulesProcessingFile2-> 225620 
2021-08-02 07:09:55	User.Notice	192.168.1.77	ESP32Battery EspEasy: WD   : Uptime 1 ConnectFailures 0 FreeMem 224432 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
2021-08-02 07:09:55	User.Debug	192.168.1.77	ESP32Battery EspEasy: Read settings: ControllerSettings index: 0
2021-08-02 07:09:55	User.Debug	192.168.1.77	ESP32Battery EspEasy: UDP  : C010 connecting to 192.168.1.2:8089
2021-08-02 07:09:55	User.Notice	192.168.1.77	ESP32Battery EspEasy: EVENT: BMP280#Pressure=1011
2021-08-02 07:09:55	User.Debug	192.168.1.77	ESP32Battery EspEasy: EVENT: BMP280#Pressure=1011 Processing time:15 milliSeconds
2021-08-02 07:09:55	User.Notice	192.168.1.77	ESP32Battery EspEasy: EVENT: WiFi#Connected
2021-08-02 07:09:55	User.Debug	192.168.1.77	ESP32Battery EspEasy: EVENT: WiFi#Connected Processing time:20 milliSeconds
2021-08-02 07:09:55	User.Debug	192.168.1.77	ESP32Battery EspEasy: Read settings: ControllerSettings index: 0
2021-08-02 07:09:55	User.Debug	192.168.1.77	ESP32Battery EspEasy: UDP  : C010 connecting to 192.168.1.2:8089
2021-08-02 07:09:55	User.Debug	192.168.1.77	ESP32Battery EspEasy: Read settings: ControllerSettings index: 0
2021-08-02 07:09:55	User.Debug	192.168.1.77	ESP32Battery EspEasy: UDP  : C010 connecting to 192.168.1.2:8089
2021-08-02 07:09:55	User.Debug	192.168.1.77	ESP32Battery EspEasy: Read settings: ControllerSettings index: 0
2021-08-02 07:09:55	User.Debug	192.168.1.77	ESP32Battery EspEasy: UDP  : C010 connecting to 192.168.1.2:8089
2021-08-02 07:09:55	User.Notice	192.168.1.77	ESP32Battery EspEasy: EVENT: System#NoSleep=1
2021-08-02 07:09:55	User.Debug	192.168.1.77	ESP32Battery EspEasy: EVENT: System#NoSleep=1 Processing time:14 milliSeconds
2021-08-02 07:09:56	User.Debug	192.168.1.77	ESP32Battery EspEasy: Memtrace
0: lowest: 224616  PluginCall (22)-> 225944 PluginCall_s (0)-> 225928 PluginCall_s (1)-> 225928 LoadControllerSettings-> 225092 LoadFromFile-> 224816 PluginCall (22)-> 225844 PluginCall_s (0)-> 225828 PluginCall_s (1)-> 225828 LoadControllerSettings-> 224992 LoadFromFile-> 224716 PluginCall (22)-> 225744 PluginCall_s (0)-> 225728 PluginCall_s (1)-> 225728 LoadControllerSettings-> 224892 LoadFromFile-> 224616 
2021-08-02 07:09:56	User.Debug	192.168.1.77	ESP32Battery EspEasy: 1: lowest: 224716  rulesProcessingFile2-> 225748 rulesProcessingFile-> 225924 rulesProcessingFile2-> 225748 rulesProcessingFile-> 225924 rulesProcessingFile2-> 225748 PluginCall (22)-> 225944 PluginCall_s (0)-> 225928 PluginCall_s (1)-> 225928 LoadControllerSettings-> 225092 LoadFromFile-> 224816 PluginCall (22)-> 225844 PluginCall_s (0)-> 225828 PluginCall_s (1)-> 225828 LoadControllerSettings-> 224992 LoadFromFile-> 224716 
2021-08-02 07:09:56	User.Debug	192.168.1.77	ESP32Battery EspEasy: 2: lowest: 224592  PluginCall (30)-> 225660 rulesProcessing-> 225816 rulesProcessingFile-> 225560 rulesProcessingFile2-> 225620 rulesProcessingFile-> 225796 rulesProcessingFile2-> 225620 rulesProcessingFile-> 225796 rulesProcessingFile2-> 225620 rulesProcessingFile-> 225796 rulesProcessingFile2-> 225620 PluginCall (4)-> 225720 PluginCall_s (0)-> 225700 PluginCall_s (1)-> 225700 LoadControllerSettings-> 224864 LoadFromFile-> 224592 
2021-08-02 07:09:56	User.Notice	192.168.1.77	ESP32Battery EspEasy: WD   : Uptime 1 ConnectFailures 0 FreeMem 225796 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
2021-08-02 07:09:56	User.Notice	192.168.1.77	ESP32Battery EspEasy: EVENT: System#Sleep
2021-08-02 07:09:56	User.Debug	192.168.1.77	ESP32Battery EspEasy: EVENT: System#Sleep Processing time:20 milliSeconds
2021-08-02 07:09:56	User.Notice	192.168.1.77	ESP32Battery EspEasy: SLEEP: Powering down to deepsleep...

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Deep Sleep for ESP32

#20 Post by TD-er » 02 Aug 2021, 10:37

Looks like it is receiving garbage from the USB to serial chip.
There are 2 things you can do here:
- Uncheck "Use Serial" on the Tools/Advanced page.
- Power the entire device via USB port, but that will probably consume more power.

The first option does no longer allow to receive commands via serial, thus also not be interrupted by processing the received garbage.
The second one is probably what you need to do, as an USB to serial adapter un an unkown state can also "press" the reset button and/or GPIO-0 causing all kinds of issues when booting. (or running)

Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests