Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BME688 Firmware Interfacing

    BME688 Firmware Interfacing

    campsight
    New Poster

    Hello,

    I have some general questions on interfacing with the BME688. 

    In our application, we are using the BME688 to gather enviroronmental data (temperature, humidity, air pressure) as well as using the AI feature to detect if certian VOCs are present based on our profile. 

    I have added the bme68x, datatypes and interface to the firmware, and include these in the build, along with the libalgobsec.a file, which is also compiled into the firmware:

    campsight_1-1727737636448.png

    Additionally I have the 'coffee or not' example from the AI studio examples. Right now I can read appropriate temperature, humudity and air pressure data. What I am unsure of is how to feed the BME688 the 'coffee or not' configuration array. 

    Question 1: Configuration Array

    Is this configuration array generated by the AI studio (in my case, the coffee example) the array that is provided to the bse_set_configuration function as the serialized_settings paramter?

    campsight_2-1727739393686.png

    If not, how is the config array provided to the BSEC library? 

    Question 2: BSEC interface vs BME68X library 

    As of now,  I am using the BME68X functions to read environmental data. Now I am also implementing the BSEC library to encorporate the AI VOC sensing. Since I am using the BSEC, can I just use BSEC_update_subscription() to gather all data, and just use the BME68X functions to initialize the sensor?

     

    Thanks all.

    2 REPLIES 2

    Strooom
    Member

    Unfortunately I cannot (yet) give you the answers, I am afraid that an application note explaining all this in sufficient detail is missing.

    But I see you are using STM32 and so am I, so as we are on a similar project, I will keep in touch and we can exchange experience, tips and tricks.

    kmca
    Established Member

    The integration guide that comes with the BSEC library covers how to call the library on page 15 - initialise the sensor, initialise the library, subscribe to outputs (based on the config you have from AI Studio),  update subscriptions, and walk through the outputs. See the examples folder and bsec_integration.c.

    In my experience when scanning/sniffing for subscribed substances, the standard environmental values such as Temp go haywire and should be ignored.  You can subscribe to 4 target substances and use the IA Studio classification or regression algorithms, as best fits your use case.   If you are scanning/sniffing continuously then you probably need a second sensor for the environmental data. That could be another BME688 using the BSEC  multiplex interface or an alternative sensor like a BME 280 (but not using BSEC).

    Keith

    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