Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BME 680 Using without BSEC Library

    o_o
    Contributor

    Re: BME 680 Using without BSEC Library

    Hi Ruslan,

    I can only give you a partial answer :
    Gas resistance vs data rate
    According to our expertise the gas resistance value is impacted by the data rate, this is why we selected 2 different fixed data rate for BSEC : 1/3 hz and 1/300 hz. Your data rate of 1/1800 hz is not the same supported by our algorithm.

    With such a low data rate, it would take quite some time for the pollutants to reach an equilibrium when the sensor is heated. The working mode has to be carefully tuned, so that there isn't an accumulation of pollutants on the sensor due to the extended low temperature phase.

    My advice would be to use the RTC ram to batch the the raw data(temp, humidity, gas) every 5min, then every 30min you can run BSEC (by adding the correct timestamps) and save the state to NVM.

    Ruslan
    Member

    Re: BME 680 Using without BSEC Library

    Hi,
    so if I will decide to use bsec lib I must use bsec_init and bsec_loop functions and in bsec_loop I write ...ULP mode. Then I go to standby mode(!!! all clocks off and system after wackining will reset all mcu and ram) for 299sec and after wackining up how I can take measurement if mcu was in that mode(as without power)?
    o_o
    Contributor

    Re: BME 680 Using without BSEC Library

    Hi Ruslan,

    For BSEC to work, you have to use the sensor settings dictated by the library, and sample at the rate of the working mode you are using. For ULP that would be every 300sec. However, this sensor configuration is always the same. (It only dynamically changes in ULP+ mode). Your host MCU can indeed wake up every 300sec and sample the BME680 data.

    However the BSEC library needs data buffers to keep the state of the library. If you MCU loses the RAM contect at every sample, this gives you 2 options:
    1- Save the BSEC state to NVM
    2- Send the raw data to another processor, which would then run the BSEC library (e.g. a server running in the cloud)

    o_o
    Ruslan
    Member

    Re: BME 680 Using without BSEC Library

    I have only 32pcs of  16-bit registers of RTC memory. BSEC needs:  #define BSEC_MAX_STATE_BLOB_SIZE (139) /*!< Maximum size (in bytes) of the data blobs returned by bsec_get_state()*/ . If I change 139 to 64 will BSEC work properly? And I must save state after every measurement and then go to deep sleep?

    o_o
    Contributor

    Re: BME 680 Using without BSEC Library

    This would unfortunately not work. The entire state needs to be saved for BSEC to work.
    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist