Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BSEC BME680 change measurement settings

    BSEC BME680 change measurement settings

    domko99
    Member

    Hi. I am trying to implement BSEC library to my project but I am getting hard times how to change measurement settings like IIR filter, oversampling rates of temperature, humidity or pressure. I assume I should change it here:

    static void bme680_bsec_trigger_measurement(){
    if (sensor_settings->trigger_measurement)
        {
             /* Set sensor configuration */
            bme680_g.tph_sett.os_hum  = sensor_settings->humidity_oversampling;
            bme680_g.tph_sett.os_pres = sensor_settings->pressure_oversampling;
            bme680_g.tph_sett.os_temp = sensor_settings->temperature_oversampling;
            bme680_g.gas_sett.run_gas = sensor_settings->run_gas;
            bme680_g.gas_sett.heatr_temp = sensor_settings->heater_temperature; /* degree Celsius */
            bme680_g.gas_sett.heatr_dur  = sensor_settings->heating_duration; /* milliseconds */
    }
    or here:
    /* Fixed I2C configuration */
        bme680_g.dev_id = 0x77;
        bme680_g.intf = BME680_I2C_INTF;
        /* User configurable I2C configuration */
        bme680_g.write = bus_write;
        bme680_g.read = bus_read;
        bme680_g.delay_ms = sleep;
        bme680_g.tph_sett.os_hum  = BME680_OSR_16X; // doesnt work
     
    I was trying everything but results are always same and I cant change parameters. Can you please help me how to do it? Thanks.
    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hello domko99,

    You could download BSEC1.4.8.0 package, refer attachment example code.
    https://www.bosch-sensortec.com/software-tools/software/bsec/

    I did but there is nothing about setting measurement. I was trying to call sensor struct and change parameters but sensor is ignoring it. So I dont know.

    BSTRobin
    Community Moderator
    Community Moderator

    Hi domko99,

    You can manually set the measurement parameters, as shown in the code. However, if you use BSEC, you are not recommended to modify it. We are not sure what impact any modification of measurement parameters will have on BSEC.

    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