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.
03-10-2022 07:22 AM
Hello hugehead,
We will update BSEC2 github code which could read multiple sensors in the future. The preliminary time is April.
03-18-2022 12:15 PM
Hello Robin,
tahnk you very much, could you please send me a quick update on the development status?
Kind Regards
Matthias
04-11-2022 03:41 PM
Hello robin,
It is nearly mid of april. Any news regarding the new release with multiple sensor support?
05-06-2022 11:52 AM
Hello robin,
Any news regarding the new release with multiple sensor support?
05-10-2022 04:04 PM
Hello hugehead,
Sorry for the delay reply.
We are preparing for release internally, because we have to go through some processes, so it is relatively slow.
We will release the software ASAP.