Bosch Sensortec Community

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

    BME680 CO2 in ULP not changing

    BME680 CO2 in ULP not changing

    goof
    Member

    Hi there,

    Perhaps this is a trivial question and I am just being impatient with getting data but hopefully someone can clarify.

    The bottom line is that when I start the sensor the reading for CO2 en TVOC keep at 500 and 0 respecitevely (if I do not initialize the state). 

    Settings:  

    • bsec_config_iaq -> generic_33v_300s_28d
    • sensorList({
            BSEC_OUTPUT_RAW_GAS,
            BSEC_OUTPUT_CO2_EQUIVALENT,
            BSEC_OUTPUT_BREATH_VOC_EQUIVALENT        
        })
    • I am ussing a Feather M0

    The sequence of the program is as follows: 

    Initialization:
    • iaqSensor.begin(BME680_I2C_ADDR_SECONDARY, Wire);
    • iaqSensor.setConfig(bsec_config_iaq);
    • iaqSensor.updateSubscription(sensorList, 3BSEC_SAMPLE_RATE_ULP);
    Loop:
    • iaqSensor.run(getTimeStamp()) (this returns the time in millis of an external real time clock)
    • if run returns true do read: 
      • iaqSensor.co2Equivalent;
      • iaqSensor.breathVocEquivalent;
    • When read done: device goes to sleep for 5 minutes (more precisely the interval is 5 minutes + 6 seconds
    • Wake up (go back to top of loop)

    This keeps giving the initial values of 500 and 0 for co2Equivalent and breathVocEquivalent

    When I add upon initialization the setState step:  iaqSensor.setState(state); then I get a Co2 value of 562 all the time which is probably the value I stored previously but this does not change. 

    question 1: when will the sensor (or bsec library) start to actually return out Co2 values?

    question 2: how important is it to store the state and set it when the sensor is woken up? 

    question 3: how long is that state valid?

    question 4: would it be matter to let the sensor run outside on a normal power mode for let's say 15 minutes or so? or does it not matter at all?

    Many thanks for the help!

    Goof

     
     
     

     

    5 REPLIES 5

    Jet
    Occasional Contributor

    Hi Goof:

         You are a nice guy, very appreciate you to share your experience.

     

    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