Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    Understanding BSEC 2 Sample Rates

    Understanding BSEC 2 Sample Rates

    marsfan
    Member

    I'm working on a small personal environmental monitoring project that uses the BME688 alongside the BSEC2 library, and I am confused about some of the behvaior related to the sample rate of virtual sensors, as documented in section 1.2.4 of the integration guide PDF, and in the example code provided in the library.

    1. Looking through the integration guide PDF and the examples provided by Bosch, I'm confused as to how the sample rate for the virtual sensors are supposed to be configured. The array that is passed into bsec_update_subscription allows for a different sample rate to be set for each virtual sensor, but the documentation, as well as the provided examples make it look as if only one sample rate should be used for all of the different virtual sensors. Should I be using the same sampel rate for all sensors, or can I mix which sensors are used (i.e. some sensors in ULP mode, and others in SCAN mode)?
    2. I'm confused as to what sample rates the different virtual sensors support. In the bsec_iot_example.c file that is provided with the BSEC library, the sample rate of the gas index and estimate sensors are set to BSEC_SAMPLE_RATE_LP, however the integration guide PDF that is provided with the library states (in section 1.2.4) that these sensors only support BSEC_SAMPLE_RATE_SCAN. Is this an error in the integration guide, or in the example code?
    3. Looking at the integration guide (in section 1.2.4), it seems that the gas index features and the IAQ/VOC/eCO2 measurements are not able to operate in the same sample modes, and thus likely cannot be operated at the same time. This is further indicated by the statements that the sensor shall not perform both at once, and shall not switch between different modes during the lifetime of the sensor. Does this mean that to be able to perform both types of measurements, multiple sensors must be used?
    4. In the integration guide (in section 1.2.4), it states that " the user shall not switch between different modes during the lifetime of
      a given sensor." What is the meaning of "lifetime"? Does this mean for an operational purpose, or that once I start using the sensor in one mode, I should never change it again, even if I intend to use the sensor in an entirely different prototype project?
    4 REPLIES 4

    BSTRobin
    Community Moderator
    Community Moderator

    Hi marsfan,

    Virtual sensors cannot be mixed in BSEC_SAMPLE_RATE_SCAN mode and BSEC_SAMPLE_RATE_LP mode.
    BSEC software does not yet support the mixing of virtual sensors in BSEC_SAMPLE_RATE_SCAN mode and BSEC_SAMPLE_RATE_LP mode. It is not yet supported to use both functions simultaneously.
    BSEC_OUTPUT_RAW_GAS_INDEX, BSEC_OUTPUT_RAW_GAS_ESTIMATE only support BSEC_SAMPLE_RATE_SCAN mode, setting BSEC_OUTPUT_RAW_GAS_INDEX, BSEC_OUTPUT_RAW_GAS_ESTIMATE to BSEC_SAMPLE_RATE_LP mode in reference code bsec_iot_example.c is incorrect.

    Thanks for the quick reply. So SCAN and LP modes cannot be mixed at all. Is it possible to mix modes such as CONT, and LP, so that some sensors update faster than others.

    Also, regarding lifetime (question #4 that I had), does that mean that once I have used the sensor in LP mode, I should never use it in SCAN mode, even for a new project I may be prototyping, or does that just mean in the active application?

    BSTRobin
    Community Moderator
    Community Moderator

    Hi marsfan,

    CONT, and LP cannot be mixed.
    The current BSEC software architecture does not support simultaneous operation of SCAN mode and LP mode, and the BME688 sensor hardware itself does not limit the software's use of which mode.

    Awesome. Thank you.

    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