Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BME680 With ESP-IDF

    BME680 With ESP-IDF

    mdtunisie
    Occasional Visitor

    Hi, 

    Am trying to implement BSEC on an ESP32 module, using ESP-IDF and the example descriped in BSEC Integration guide BST-BME680-Integration-Guide-AN008-47.pdf

    While the example run correctly using Arduino IDE and IAQ value and accuracy showup on log after 300 seconds, with startup values at 25.0

    [186120.00] T: 28.51| rH: 45.03| IAQ: 25.00 (0)| Static IAQ: 25.00| CO2e: 0.00| bVOC: 0.00

    [660120.00] T: 28.50| rH: 47.44| IAQ: 56.14 (1)| Static IAQ: 38.60| CO2e: 0.00| bVOC: 0.00

     

    the same basic example using ESP_IDF (except the output function and i2c related fonctions) with start at 0.00

    and maintain that value after 300 seconds

    [3261.72] T:28.46 | rH:46.44 | IAQ:0.00 | IAQ_acc:0 | Static IAQ:0.00 | Raw gas :0.00 | Status : 0

    No problem with temperature and humidity though ...

     

    What i noticied is that in file bsec_integration.c is that the code with ESP-IDF seems to ignore 
    case BSEC_OUTPUT_IAQ
    case BSEC_OUTPUT_STATIC_IAQ
    those outputs are never triggered 

    It's not the case when compiling with Arduino, and am using exactly the same .c .h .a files.

    Thanks 

     

     

     

     

     

    1 REPLY 1

    handytech
    Community Moderator
    Community Moderator

    @mdtunisie wrote:

    the same basic example using ESP_IDF (except the output function and i2c related fonctions)


    If there is any risk that the I2C related fuctions implemented are not the same, would you be able to confirm with a logic analyzer that I2C traces in both setups look exactly the same?


    @mdtunisie wrote:

    [3261.72] T:28.46 | rH:46.44 | IAQ:0.00 | IAQ_acc:0 | Static IAQ:0.00 | Raw gas :0.00 | Status : 0


    The fact that the Raw gas value shows 0.00 here seems to indicate that this output was either not enabled (typ. via bsec_update_subscription), or that the gas sensor configuration was not correctly set or not successfully applied (typ. via bme680_set_sensor_settings). Please ensure that the arguments passed to these two functions are correct and that the resulting I2C transactions also look as expected.

    Based on the output of the two points above, also feel free to share code snippets for review to see if anything outstanding can be found.

    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