Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BME688 DevKit - Deployment of BSEC Config / Serialized Configurations Selectivity Error

    BME688 DevKit - Deployment of BSEC Config / Serialized Configurations Selectivity Error

    faulehenne
    New Poster

    Hey,

    i've created a model with BME AI-Studio from the coffee example. I now want to deploy this model through the basic_config_state.ino file by replacing the line 

    #include "config/FieldAir_HandSanitizer/FieldAir_HandSanitizer.h"
    by
    #include "config/Kaffee/Kaffee.h" 
     
    (i've created the respective folder in the .../src/config directory and dropped my "Kaffee.c" and "Kaffee.h" file in there)
     
    When i try to flash this model to my BME688 DevKit with the Arduino IDE i get the following error:
     
    fatal error: bsec_serialized_configurations_selectivity.h: No such file or directory
    #include "bsec_serialized_configurations_selectivity.h"
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
     
    I've found multiple topics explaining on how to deploy models to the DevKit but still can't succeed in running my own model on the DevKit in the example code. The shown error has not been mentioned.

    Can someone explain the steps on how to deploy the model properly? I exported my BSEC config files to the SD-Card as well. BSEC Version is 2.4.0.0 and i'm using this example to replace the include in.
    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hi faulehenne,

    You can download latest BSEC2.4.0.0 package from https://www.bosch-sensortec.com/software-tools/software/bme688-software
    There is Arduino example project under folder "BSEC2.4.0.0_Generic_Release_23012023\examples\BSEC_Integration_Examples\examples\bsec_iot_example" for your reference.

    After you train data and export config file in BME AI-Studio, to deploy config file to BME688 dev kit, you could copy .aiconfig and .config files to SD card; to deploy config file to Arduino software, you could replace your config file(.c, .h) to "BSEC2.4.0.0_Generic_Release_23012023\examples\BSEC_Integration_Examples\src\config\Selectivity_Config.c" and "BSEC2.4.0.0_Generic_Release_23012023\examples\BSEC_Integration_Examples\src\config\Selectivity_Config.h".

    Hi,

    i copied my .aiconfig and config files to the SD card. After replacing the Selectivity_Config.h and Selectivity_Config.c with my files and copying them to the examples directory as well as copying the bsec_interfaces.h and bsec_datatypes.h to the example directory the compiling still fails.

    The file that i created with AI Studio includes a file called bsec_serialized_configurations_selectivity.h which can not be found in the whole directory. After finding one in an older release and importing it - the compiling still fails with the compilation error

    "Selectivity_config" was not declared in this scope (line 262 of bsec_iot_example.ino)

    I've tried multiple ways of finding the file in fresher releases.

    BSTRobin
    Community Moderator
    Community Moderator

    Hi faulehenne,

    If you cannot find the file during compilation, you need to check if your compilation environment contains the correct path and includes the file to be compiled in the code.

    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