Bosch Sensortec Community

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

    Help with using BSEC export file on a Single Adafruit BME688

    Help with using BSEC export file on a Single Adafruit BME688

    PROletarian1991
    New Poster

    Hello, i´ve trained and exported the BSEC files and succesfully used them in the BME x8, however in the development we need to use only one sensor per board, and i´ve come into the issue that BSEC export files just won´t work on the basic_config_state, i modified the .h and .c files i got from the BSEC export on AI Studio, and it just shows error -34, i don´t know what to do anymore.

    Board is RP2040, using earle philhower core, altough error is also shown on ESP32.

    BME688 x1 board is Adafruit

    Connected together using StemmaQT cable.

    When not trying to use my own BSEC export files sensor works correctly,altough i noticed it showed [100% Probability of hand sanitizer] when it was exposed to normal air

    4 REPLIES 4

    BSTRobin
    Community Moderator
    Community Moderator

    Hi PROletarian1991,

    For your description " i modified the .h and .c files i got from the BSEC export on AI Studio, and it just shows error -34,", what is your modificatin?

    i modified the "#include "bsec_serialized_configurations_selectivity.h""  line since it was stating an error:

    C:\Users\bryma\OneDrive\Documentos\Arduino\libraries\Bosch-BSEC2-Library-master\src\config\Export\2023_04_21_21_38_unnamed_HP-501_RDC-1-0Continuous.c:2:10: fatal error: bsec_serialized_configurations_selectivity.h: No such file or directory
    #include "bsec_serialized_configurations_selectivity.h"
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    exit status 1

    Some more information, i´m now using seeduino Xiao as the microcontroller, based off SAMD21, if i try a custom BSEC export i get :

    C:\Users\bryma\OneDrive\Documentos\Arduino\libraries\Bosch-BSEC2-Library-master\src\config\Export\2023_04_21_21_38_unnamed_HP-501_RDC-1-0Continuous.c:2:10: fatal error: bsec_serialized_configurations_selectivity.h: No such file or directory
    #include "bsec_serialized_configurations_selectivity.h"
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    exit status 1
    Error compiling for board Seeeduino XIAO.

    If i use the hand sanitizer VS air i get that ~100% certainty that the BME688 is reading hand sanitizer, when in fact its regular air. If i were to add hand sanitizer close to the sensor i get no change whatsoever.

     

     

     

     

    In addition, the files generated from AI Studio, differ drastically from the ones in the hand sanitizer example, AI Studio export references config_selectivity.

     

    PROletarian1991_0-1682571249993.png

     

     

    Hi PROletarian1991,

    '-34' means the version of the config file and BSEC library do not match, we check the config file what you generated which is 2400, so make sure to use 2400 to run it.
    And also you can use alcohol to test with the original config file.

    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