Bosch Sensortec Community

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

    BSEC 2.0 + BME688 to detect BSEC_OUTPUT_GAS_ESTIMATE_1

    BSEC 2.0 + BME688 to detect BSEC_OUTPUT_GAS_ESTIMATE_1

    AkmalSQ
    New Poster

    Hi, I'm using BSEC 2.0.6.1 and BME688 sensor with a config generated using BME AI Studio. The config is a simple coffee detection algorithm trained using BME AI studio.

    Unfortunately I am having issues using the BSEC 2.0 library. I have implemented my code according the bsec integration guide and the bsec example. 

    Problems:

    1. I am unable to use a sample rate other than BSEC_SAMPLE_RATE_HIGH_PERFORMANCE when calling bsec_update_subscription() with BSEC_OUTPUT_GAS_ESTIMATE_1 enabled.

    2. If BSEC_SAMPLE_RATE_HIGH_PERFORMANCE is used, I am not getting new information for requested outputs that relate to gas measurement. The aqi, gas_percentage and gas_estimate_x values are not changing.

    Questions:

    1. Do you have sample code for using bme-ai solution with bsec2.0? 

    2. What limitations apply to the sample-rates requested using bsec_update_subscription?

    It seems as if others are also facing this issues.

    Thanks,

    Akmal

    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hello AkmalSQ,

    Is there any error or warning code on your side?

    The example code in BSEC2 release package is verified and can be used for start up.

    Please make sure you used the bsec_serialized_configurations_selectivity configure string. And for selectivity solution, when gas estimated is requested, we can only use BSEC_SAMPLE_RATE_HIGH_PERFORMANCE, otherwise gas estimated will not be updated.

    Could you give feedback?

    Hello,
    I am using the bsec_serialized_configurations_selectivity configure string as well as BSEC_SAMPLE_RATE_HIGH_PERFORMANCE, however I keep getting unexpected values for GAS_ESTIMATE1 and GAS_ESTIMATE2, that value being equal to one for gas_estimate2 and zero for estimate1. This value never changes no matter the environment inserted, being that the values of bsec_serialized_configurations_selectivity are from a C02 test algorithm.
    Regards

    BSTRobin
    Community Moderator
    Community Moderator

    Hello RuiMPCosta,

    Do you mean you choose other config in your code? If yes, which config file you used?

    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