Important Cookie Information

This website uses absolutely necessary cookies. If you consent to the use of convenience cookies, please click “Yes, I agree.” By clicking on “Privacy Settings.” you can change this setting at any time and withdraw your given consent. Icon down see more You can find detailled information in our Privacy Policy Icon forward-right
Icon up see less

Bosch Sensortec Community

    Showing results for 
    Search instead for 
    Did you mean: 

    Supporting BME680 with BSEC on ESP32 using deep-sleep

    Occasional Visitor

    Supporting BME680 with BSEC on ESP32 using deep-sleep

    I'm thinking of using BME680 and related software with ESP32 using deep-sleep. In deep-sleep, the system turns system RAM off but small part of RAM (RTC_RAM) is kept powered for preserve the state during the sleep. I was thinking of putting data structures from bme680.h, the integration files into the RTC_RAM and initialize everything once during the power-up but after returning from the deep-sleep, I would just trigger measurements (no initializations) as MBE680 is kept all the time powered in (U)LP so it retains its state during the deep-sleep boot-ups.

    This part should work fine but I'm not sure if any system data is kept at libalgosec. If there are some data at the algorithm section that needs to be preserved between measurements (or initialized in the library), then this approach would not work and the best I can do is light-sleep. Can you, please, confirm if you store any system data in the algorithm library that would prevent my approach?

    1 REPLY 1
    Community Moderator

    Re: Supporting BME680 with BSEC on ESP32 using deep-sleep

    Hi mikkojaakkola,

    The state should be sufficient to resume using BSEC when the the ESP32 is powered back on. If you see a problem in the behavior of the algorithm, for example, the IAQ estimate never calibrates, get back to us.