Skip to content
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

ECO mode cause board to constantly reboot when sleep time set above 2100 seconds #156

Open
Marvin-YYC opened this issue Dec 13, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@Marvin-YYC
Copy link

Marvin-YYC commented Dec 13, 2022

the bug

I was testing a board outdoors running on a battery and solar panel, using ECO mode set at 1800 seconds (30 min) After several days I switched the board to go into ECO mode for 3600 seconds (60 min). The battery started to drain very quickly, and I discovered that the board was stuck in a reboot loop. When I changed the sleep time to 2100 seconds the issue went away. I tested at 2200, 2500, 3000, 3500 seconds and the reboot loop started again.

This is on a TTGO T-Display using CanAirIO Bike with AHT10 Temp + Humi sensor

Sorry, I should have placed this in firmware issues.

@Marvin-YYC Marvin-YYC added the bug Something isn't working label Dec 13, 2022
@roberbike
Copy link
Member

Can you post here the log about reboot loop?. I did not test this ECO time with such high values.

@Marvin-YYC
Copy link
Author

Marvin-YYC commented Dec 14, 2022

Yes, it is a long sample rate for AQI data. With the cold weather, and the short daylight hours here I was trying to extend my battery/solar.
Loop Log attached>
esp-web-tools-logs.txt

@roberbike
Copy link
Member

To solve this issue, I made some changues in my own compilation:
In platformio.ini
[env:TTGO_TDISPLAY]
extends = esp32_common
board = esp32dev
lib_deps =
${common.lib_deps}
bodmer/TFT_eSPI @ 2.4.70
lib_ignore =
gui-utils-oled
build_flags =
${common.build_flags}
-Os
-DUSER_SETUP_LOADED=1
-DST7789_DRIVER=1
-DENABLE_TFT=1
-DTFT_WIDTH=135
-DTFT_HEIGHT=240
-DCGRAM_OFFSET=1
-DTFT_MOSI=19
-DTFT_SCLK=18
-DTFT_CS=5
-DTFT_DC=16
-DTFT_RST=23
-DTFT_BL=4
-DTOUCH_CS=-1
-DTFT_BACKLIGHT_ON=1
-DLOAD_GLCD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=40000000
-DSPI_READ_FREQUENCY=6000000

In /scr/power.cpp

line 50 esp_sleep_enable_timer_wakeup(seconds * 1000000ull);

And it is working with 2 examples. ! with 2125 seg and other with 3150 seg of deep-sleep.

image

@roberbike
Copy link
Member

Solved with ver 922, devel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants