Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BSEC 2.x for Arduino

    BSEC 2.x for Arduino

    Raggio
    Member

    Dear All,

    Is there an expected date for the upgrade of the BSEC for arduino to the revisione 2.x?

    I've designed a custom board based on ESP32 and BME688 to monitor indoor air quality, Sensei32.
    It would be great to have support for the mighty BME688 also in Aurduino environment as of right now only BME680 is officialy supported by the last library version (althought it works and pulls out plausible readings).

    Is it possible to manually upgrade the arduino library by updating its files with the one I can get from bme688_development_software?

    Thank you again,
    Davide

    https://github.com/BoschSensortec/BSEC-Arduino-library

    https://github.com/Sensei32-DevKit

    5 REPLIES 5

    Raggio
    Member

    Update:

    These days i've managed to merge the last available official BSEC library (1.6.x) with the latest BSEC 2.x successfully, after all no code modification was required library-side (just an accurate copy-paste).
    As of now the provided example "basic_config_state.ino" compile and runs smoothly but it obviously is in the BSEC_SAMPLE_RATE_HIGH_PERFORMANCE.
    To the needs of my project i want to configure it in ULP mode (300s) but i've found problem handling DeepSleep: unlike previous BSEC library (1.6.x), the sensor keep re-initializing after a deep-sleep wake up event.

    Do I miss how to use this new library API for DeepSleep?
    Can you provide a brief example or few steps?

    Here is a link to the project source (just the .ino file is published, bsec 2.x library porting is not distribuited in any form, as required by the license): 
    https://github.com/Sensei32-DevKit/Sensei32-BME688_Advanced/blob/BSEC_2-0-6-1/Sensei32-BME688_Advanc...

    As an additional information the code above will run well if DeepSleep is replaced with LightSleep or delay, so i think is just an erroneus setup at wake-up.
    Many thanks for the help.

     

    BSTRobin
    Community Moderator
    Community Moderator

    Hello Raggio,

    You could download BME688 software from here: https://www.bosch-sensortec.com/software-tools/software/bme688-software/

    Dear Robin,

    Thank you for your reply.
    I already have the latest software versione from "https://www.bosch-sensortec.com/software-tools/software/bme688-software/", the BSEC 2.0.6.1 release.
    What I found is that this release have an issue with ESP32 DeepSleep that prevents ULP mode (300s).

    Even if I store the sensor state in EEPROM and perform the correct initialization function as of the past library release (BSEC 1.6.x), the sensor keep re-initializing after each wake-up. 

    Do I miss how to use this new library API for DeepSleep?
    Can you provide a brief example or few steps?

    Here you can find my current code for BSEC 2.x "https://github.com/Sensei32-DevKit/Sensei32-BME688_Advanced/blob/BSEC_2-0-6-1/Sensei32-BME688_Advanc..."

    Thank you,

    Davide

    BSTRobin
    Community Moderator
    Community Moderator

    Hello Raggio,

    Which configuration you used?

    BSEC2 profile.png

    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