06-10-2024 06:11 AM
Hi,
I'm using BSEC v2.4.0 with BME 688 on ARM m4 SoC. The system enables BME 688 scan mode with heat profile generated by AI studio.
It often sees bsec_do_steps() function return 5, i.e. Gas index not provided to bsec_do_steps() from log messages. Usually 1-2 times per hour.
I don't see any problem from the input data of bsec_do_steps(). When this happens, I need to re-init the BSEC and sensors by calling bsec_iot_init(), otherwise it cannot retrun to normal state.
The problem is when I reinitialzie the BSEC lib, the gas estimation will unstable for 1-2 min. The data shows peak. I can hide this for 2 min but seems not a good idea.
Any suggestionon this issue? How to avoid bsec_do_steps() return error? Thank!
06-19-2024 10:37 AM - edited 06-19-2024 10:40 AM
Hi brianchen,
Thanks for your inquiry.
I upload BSEC2.4.0.0 example code on STM32 for your reference.
You can refer to the following macro definitions to enable the function of gas scanning.
In user_define.h, enable macro definitions like this:
#define BME68X_OUTPUT_GAS_ESTIMATE
//#define BME68X_OUTPUT_GAS_IAQ