07-13-2021 11:02 AM
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()?
07-14-2021 04:07 AM
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.
07-14-2021 10:56 AM
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.
07-16-2021 04:18 AM
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.