a week ago
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:
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?
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.
Tuesday
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.
Tuesday
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