Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BSEC_2.0 + BME688_API Custom board Configuration

    BSEC_2.0 + BME688_API Custom board Configuration

    giomate
    New Poster

    I want to use the BSEC library to get the CO2 values, However i,m getting "mismatch" error when the example configuration file (FieldAir_HandSanitizer_config) is loaded: "BSEC_E_CONFIG_VERSIONMISMATCH". (line 125 https://github.com/BoschSensortec/Bosch-BSEC2-Library/blob/master/examples/generic_examples/basic_co...)

    I guess,this file is mean for the X8 board (2277 values???)--> Therefore, my question is, How to get/find/compile a configuration file for a custom board  with just a single sensor ? I mean (1 x BME688 on: ESP32S3, STMG4,STMH7),

    FYI . the BME68x API si working fine. Unfortunatelly, I dont know how to calculate CO2  and IAQ values from  the  the 3 data fields.....

    5 REPLIES 5

    BSTRobin
    Community Moderator
    Community Moderator

    Hi giomate,

    Can your software environment work normally with running example which downloaed from "BSEC 2.x Software" https://www.bosch-sensortec.com/software-tools/software/bme688-software/?
    First make sure your software environment is normal, then run the example of hand sanitizer and see the result again.

    The example program is applicable to BME688 + host.

    Hi Robin,

     

    this link ""BSEC 2.x Software" https://www.bosch-sensortec.com/software-tools/software/bme688-software/?" just point me to the Home page of the BME688. There, one find 3 repos and other appications... Could you be please be more precise..

    i implemeted the BME68x-Library.. this is one of these repos (https://github.com/BoschSensortec/Bosch-BME68x-Library). This API is working on the tree microcontrollers. 

    I tried to replicate the example (https://github.com/BoschSensortec/Bosch-BSEC2-Library/tree/master/examples/generic_examples/basic_co... on a custom ESP32S3 (NOT arduino)....but i got stocked at the moment to load the configuration...  the size of the file bmeConfig and the size of the FieldAir_HandSanitizer_config are not compatible..that says this function ( bsec_set_configuration(config, BSEC_MAX_PROPERTY_BLOB_SIZE, workBuffer, BSEC_MAX_WORKBUFFER_SIZE);), which is not accesible  😞

    BSTRobin
    Community Moderator
    Community Moderator

    Hi giomate,

    I high light "BSEC 2.x Software" here:

    BSEC 2.x software.png


    BME68x-Library integraed BSEC1 is used for BME680. As you used BME688, you need to use BSEC2.

    it turn out, that default configurations such as "FieldAir_HandSanitazer" does not work.

    i got working the BSEC output without Configuration step "envSensor.setConfig(FieldAir_HandSanitizer_config);"... maybe you had a better ideas.

    Anyways, i write to you because  , i have two doubts:

    1. ON my custom board there is only one BME688, However if define this variable "#define BSEC_MAX_PHYSICAL_SENSOR  " to 1, i get only temperatures.. it work with 8 (fake) physical sensor...

    2. IAQ values differs strongly, with other IAQ values.. the iaq-bme is alway for a while 50 an then  oscillates on values of 90~130 on a ventilated room(should be 50~90)..Question:IAQ-BME, can be calibrated  or readjusted...

    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