Bosch Sensortec Community

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

    BME 688 Repeating Forced Mode TPH Reads without Re-Config Gives Good Temp and Press, Bad Humidity

    BME 688 Repeating Forced Mode TPH Reads without Re-Config Gives Good Temp and Press, Bad Humidity

    mjanke
    Established Member

    Hi,

    I can successfully setup a tph read using the following function call sequence as per the forced mode example:

    init_I2c (my fcn to init my i2c link)

    bme68x_set_conf (setup a config in which I am sampling 1x for temp and press and 8x for humidity, no filter or odr)

    bme68x_set_heatr_conf (with heater disabled)

    bme68x_set_op_mode (to enable forced mode read)

    bme68x_get_meas_dur (to get the read delay)

    ... wait the read delay ... about 25 mSec

    bme68x_get_data (read the data)

    All data seems valid and accurate. Temp is 21 degC, pressure is just over 100 kPa, and RH is 46 percent. This matches other sensors nearby.

    I then try and repeat forced reads every min by repeating bme68x_set_op_mode (), bme68x_get_meas_dur(), wait, bme68x_get_data() every min.

    ... and both temp and pressure data looks good, but humidity always reads 100 percent.

    If I execute bme68x_set_conf(), bme68x_set_heatr_conf() with heater still off, bme68x_set_op_mode (), bme68x_get_meas_dur(), wait, bme68x_get_data() every min, all data looks ok.

    Why do I need to set configs each time in order to get valid humidity data?

    Thanks in advance.

    Mark J

    9 REPLIES 9

    BSTRobin
    Community Moderator
    Community Moderator

    Hello mjanke,

    What is the HW you used?

    Do you fully refer to the example code on GitHub?
    https://github.com/BoschSensortec/BME68x-Sensor-API/blob/master/examples/forced_mode/forced_mode.c

    mjanke
    Established Member

    Hi @BSTRobin,

    I we are using the BME 688 chip on our custom device.

    Yes, I followed the example code that you linked. It works fine for a single forced mode read of tph. My challenge is that I am doing multiple reads - every few min. I will be changing code to read every hour, so forced mode with manual timed tph reads is required.

    The example does not show repeated forced mode reads (e.g. every few min). Do I have to config before each read to get humidity data? Seems strange as I can read temp and pressure without config before each read.

    Regards,

    Mark J

    BSTRobin
    Community Moderator
    Community Moderator

    Hello mjanke,

    After finished measurement under force mode, sensor will automatically return to sleep mode. As you could see it from data sheet, sleep mode had minimal power consumption and couldn't support to do measure. So you need to set configs for force mode if you want do next measurement.

    BME680 sensor mode.png

    mjanke
    Established Member

    Hi BSTRobin,

    First, thank you for your replies.

    As I had noted, we are able to read temperature and pressure without BME68x Sensor API re-config calls each time. I believe that the 688 is taken out of sleep mode as soon as we send any command to it via the api functions (at least it behaves that way).

    The only value that we cannot read without re-config is humidity, so there must be something different about humidity. I cannot see what is different from any of the 68x docs reviewed. We can re-config for each tph sample in forced mode if required, it just seems very strange that we have to re-config for humidity and not temperature and pressure.

    Thanks,

    Mark J

    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