Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BSEC bsec_sensor_control() needed?

    ApurvaPatel
    New Poster

    BSEC bsec_sensor_control() needed?

    Hello. I have already implemented the latest BME68x driver for the BME680. Now I wish to add on the BSEC library. Since I have already obtained raw data using the BME68x functions, do I still need to call bsec_sensor_control() in the main processing loop or can I simply just move on to use bsec_do_steps()?

    3 REPLIES 3
    BSTRobin
    Community Moderator

    Re: BSEC bsec_sensor_control() needed?

    Hello ApurvaPatel,

    To run BSEC software, you need to run the code in bsec_iot_loop() function. bme680_bsec_process_data() already contains the call of bsec_do_steps(). If your software platform supports multitask, you can put bsec_iot_loop() into a task to execute.

    ApurvaPatel
    New Poster

    Re: BSEC bsec_sensor_control() needed?

    My code that reads the data from the BME680 is already running in a loop.  I have already implemented the functionality of bme680_bsec_trigger_measurement() function using the BME68x functions. Now I was hoping to simply implement functionality of bme680_bsec_read_data() and bme680_bsec_process_data(). Will the BSEC library not work without bsec_sensor_control()? My understanding of that function is that it simply retrieves the sensor settings and the sensor settings do not change once set in my case.

    BSTRobin
    Community Moderator

    Re: BSEC bsec_sensor_control() needed?

    Hello ApurvaPatel,

    If you downloaded BSEC package, you could found bsec_iot_example.c under "examples" folder. bsec_iot_example.c demonstrates how to read sensor data and call BSEC library. You can refer to it.

    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