-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Web-UI displays wrong BMx280 results during deepsleep #18710
Comments
During deep sleep there is no Web UI since the device is sleeping. So you can't get anything. |
Oops - forgot the expected behaviour: |
Whatever the sensor, when the ESP is in DeepSleep it is sleeping, so not responding to Web request |
Thx for replying! The question remains, why the BMx280 switches to wrong values before entering deepsleep, while the BMP180 keeps the correct values. |
Please excuse me for being tedious, yet the problem is not resolved. I don't expect any values to be transmitted during DS. My question is, why the BMx280 switches to a wrong set of values approx. two seconds before entering DS. This is not observed with the BMP180. Sorry for any inconvenience this might have caused. |
Yes, thats why the issue is still open. |
Ah that makes sense Should be easy to solve |
@FOTH156 As soon as the driver has received the information that the ESP is about to enter DeepSleep and as put the BMP in LowPower/Sleep mode, it disable reading/updating the values and keep the last ones until next restart. |
I won't be availble in the next couple of days but I'm pretty confident on the results so I have already created the PR |
Will do some thorough testing tomorrow and report the results. Anyway a big THX to you for taking care of this issue! |
After extensive testing I can confirm that with the test version the problem has vanished and the issue can be closed. BTW, do I have to close the thread, or are you going to do this ? Thank you very much for your patience and efforts ! - Gerd |
PROBLEM DESCRIPTION
A clear and concise description of what the problem is.
Results from an BME280 are reported flawlessly via the Web UI in normal mode. When operated in deepsleep mode (DST 20, TP 10), this module gives correct results for part of the active cycle – the rest of the time (mainly during deep sleep) wrong results are displayed (see screenshots below). This is a problem because one gets incorrect information most of the time, especially for long deep sleep phases. Nevertheless, DeepSleep behaves as expected, i.e. current drops to 3mA (D1 mini) during sleep and then returns to 70 mA.
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:weblog
to 4 and then, when you experience your issue, provide the output of the Console log:TO REPRODUCE
Steps to reproduce the behavior:
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
Prepare a breadboard with an ESP8266 (FW 12.5.0) wired for deepsleep according to the docs and a BME280 (GPIO4-SDA, GPIO5-SCL) and verify proper operation. Now set DSL 20, TP 10 and monitor the Web-UI to observe the back and forth switching between correct and wrong values. An instrument to monitor the supply current is helpful in determining begin and end of deepsleep.
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
Correct results
Wrong results
ADDITIONAL CONTEXT
Add any other context about the problem here.
What I tried so far but to no effect:
Tried USB supply and LiIo
Tried Brave and Firefox
Several combinations of telemetry period and DeepSleepTime made no difference
Tried multiple ESPs (D1 mini, Lolin, adapter board) with a single BME280. In all cases I ended up with the identical set of wrong values in DeepSleep-mode.
Tried several BME280, BMP280 and BMP180. The problem is not observed with BMP180. But each BME/P 280 sensor has its own characteristic set of wrong values, very much like a fingerprint.
Eventually I stepped back to 8.5.0 Hannah only to learn, that the problem existed with this version already.
The display of wrong values is shifted to the right by one position
The change from correct to wrong results occurs approx. 2 seconds before the supply current drops to zero. Unfortunately my software knowledge is far from being sufficient to further track down this problem. This is why every support in this matter is highly appreciated. Please let me know if additional information is required!
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: