-
Notifications
You must be signed in to change notification settings - Fork 32
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
ESP32-S3 Deepsleep implementation #31
Comments
Hi @maxdd, The BME680 sensor is supported by the BSEC2 library for IAQ outputs. Please note that the BSEC library always expects an incrementing timestamp to calculate the outputs, so ensure that the time continues to tick during the deepsleep. Currently there is no warning code in BSEC to report if there is any mismatch in the input time. |
Hello @Deepak-Mvk,
Is this the intended way? with BSEC2? Regards, |
Question: did that code ever work? The library seems to use the |
If I remember correctly I had to use a gettimestamp function after waking from sleep and connecting to the internet.
Not sure if it is right, it was a long time ago. Theoretically you only need to update the RTC time once if you don't fully remove power so the code can be improved with a persistent variable to skip wifi connection. My understanding is that "nextCall" is the time for the "next" sensor.run() call with "calltime" being the current absolute posix time (needed by the algo logic). |
Thanks for the ideas. So at some point you did changed this line here https://github.com/BoschSensortec/BSEC-Arduino-library/blob/master/src/bsec.cpp#L457 didn't you? Because if you didn't then the library will have the wrong time and will mess up the readings... |
I believe BSEC has been aligned to BSEC2 api call so that code might not be valid anymore. |
https://github.com/boschsensortec/Bosch-BSEC2-Library/blob/master/src/bsec2.cpp#L254 The BSEC2 code also calls millis()...
Definitely but from my understanding those time problems come from millis() being reset. |
This change reports that compensation is not supported
@kegov is there a chance to see a fix here? I guess bsec.c needs to be somehow reverted to something similar to |
Hello,
I would like to use a BME680 sensor with BSEC2 library in a ESP32-S3 with battery.
Can you provide the constraints on using it together with deepsleep?
BSEC library is quite picky in terms of timings.
How does the BSEC2 behave?
The text was updated successfully, but these errors were encountered: