02-10-2022 05:05 PM - edited 02-10-2022 05:10 PM
Hello,
I would like to readout multiple BME688 simultaniously. I created two instances of Bsec2, and afterwards i do each step for both instances. I kept the NewDataCallback the same, as one input parameter is the BSEC instance. In BSEC2 i get an error 100 from BSEC2.
Please let me know what is the problem .
Bsec2 envSensors[2];
for(int i = 0; i < NUMBEROFDEVICES; i ++)
{
//Set multiplexer
if (!envSensors[i].begin(BME68X_I2C_ADDR_LOW, Wire))
{
checkBsecStatus(envSensors[i]);
}
/* Subsribe to the desired BSEC2 outputs */
if (!envSensors[i].updateSubscription(sensorList, ARRAY_LEN(sensorList), BSEC_SAMPLE_RATE_LP))
{
checkBsecStatus(envSensors[i]);
}
/* Whenever new data is available call the newDataCallback function */
envSensors[i].attachCallback(newDataCallback);
envSensors[i].index = i;
Serial.println("BSEC library version " + \
String(envSensors[i].version.major) + "." \
+ String(envSensors[i].version.minor) + "." \
+ String(envSensors[i].version.major_bugfix) + "." \
+ String(envSensors[i].version.minor_bugfix));
}
}
if (!envSensors[i].begin(BME68X_I2C_ADDR_LOW, Wire))
{
checkBsecStatus(envSensors[i]);
}
I checked the Arduino example for x8 board, which has 8 times BME688 and Multiplexer. It seems like the example is reading and processing only 1 BME688 sensor.
Kind Regards
Solved! Go to Solution.
08-31-2022 04:38 AM
Hi hugehead,
Could you give feedback to us?
08-31-2022 11:28 AM
Hello Robin,
I am a hobbyist trying multiple Gas Sensors and compare them using the 8x board of Bosch and would like to read out all sensors in parallel using my own Board. As you mentioned that this update is coming soon, I was hoping to get it with the next updates. As time passed and you are asking my business case now, I am assuming that nothing happened in between. Could you please let me know?
Would you have any tools you can share to run multiple BME in parallel?
09-08-2022 07:35 AM
Hi hugehead,
Currently reading multiple BME688 haven't supported in BSEC2, you could wait for subsequent updates of BSEC2 software in the future.
09-22-2022 06:36 PM
Hi, I am developing commercial gas sensor and would like to support 2 x BME688. I can read in this forum thread, that the BSEC2 library only supports 1 BME688, despite the AI library seems to be developed for supporting mulitple BME688's. Does the newly released BSEC 2.2.0.0 library support mulitple BME688 or do I still have to wait some time?