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

[2.4.1] Device freeze with sleep on #2559

Closed
reloxx13 opened this issue Apr 27, 2018 · 4 comments
Closed

[2.4.1] Device freeze with sleep on #2559

reloxx13 opened this issue Apr 27, 2018 · 4 comments

Comments

@reloxx13
Copy link
Contributor

reloxx13 commented Apr 27, 2018

Heya,

before releasing 2.4.1, i would suggest to take a look into the sleep bug.

If i set sleep != 0, the Device is freezing after a few seconds. If this happens to users which got their devices in difficult or not to reach places, it will cause alot of trouble, because the only way to fix it, is serial flashing.

Their is no serial output or a wdt reset, its just dead.

If i comment out in support.ino (or set sleep to 0):
WiFi.setSleepMode(WIFI_LIGHT_SLEEP); // Allow light sleep during idle times
everything works as espected, but the power consumption is raising.

This is what i found so far and tried some of the solutions, but i was unable to get it fixed:
esp8266/Arduino#4485
esp8266/Arduino#1381
esp8266/Arduino#4658

@arendst
Copy link
Owner

arendst commented Apr 28, 2018

Thnx again.

I will test for version 2.4.1 and if it is used do not execute setSleepMode. This way tasmota keeps running while sleepmode is disabled. If people need sleepmode they can revert to 2.4.0

Edit.

#ifndef ARDUINO_ESP8266_RELEASE_2_4_1     // See https://github.com/arendst/Sonoff-Tasmota/issues/2559
    WiFi.setSleepMode(WIFI_LIGHT_SLEEP);  // Allow light sleep during idle times
#endif

arendst added a commit that referenced this issue Apr 28, 2018
5.12.0m
* Disable sleep when using Esp/Arduino core 2.4.1 (#2559)
@arendst arendst closed this as completed Apr 29, 2018
@reloxx13 reloxx13 mentioned this issue May 2, 2018
@jeylites
Copy link

jeylites commented May 6, 2018

How do you turn OFF sleep in core 2.4.0? Will it work if comment out the following or something else has to be changed?
// WiFi.setSleepMode(WIFI_LIGHT_SLEEP); // Allow light sleep during idle times

After running 2.4.1 for a day I had to downgrade to 2.4.0 due to connectivity issues.
After a while of running the Sonoffs, Homebridge loses connection to it despite having wifi, MQTT broker & websever connectivity. Which wasn't the case in 2.4.0.

Unlike 2.4.0, I could say in 2.4.1, the websever is responsive.

@reloxx13
Copy link
Contributor Author

reloxx13 commented May 6, 2018

command sleep 0

@alton76
Copy link

alton76 commented May 6, 2018 via email

curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 6, 2018
5.12.0m
* Disable sleep when using Esp/Arduino core 2.4.1 (arendst#2559)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants