01-30-2024 03:34 PM - edited 01-31-2024 07:57 AM
Hello,
We are using single BME688 sensor with esp32 (ESP-WROVER-KIT V4.1 board) over i2c communication.
Facing BSEC error code : -2 error while wokring with example https://github.com/boschsensortec/Bosch-BSEC2-Library/blob/master/examples/generic_examples/basic_co...
Bosch-BSEC2-Library : https://github.com/boschsensortec/Bosch-BSEC2-Library/tree/master
Bosch-BME68x-Library : https://github.com/BoschSensortec/Bosch-BME68x-Library
We are getting this error as envSensor.run() fails.
On further debuggin in bsec2.cpp file we are failing bsec_do_steps(inputs, nInputs, _outputs, &nOutputs); here, as bsec_do_steps returns BSEC_E_DOSTEPS_VALUELIMITS.
https://github.com/boschsensortec/Bosch-BME68x-Library/tree/master/examples/sequential_mode example is working properly with accurate output.
Any help will be appreciated.
Thank you,
Akshay
01-31-2024 11:14 AM
Its working only if we comment below lines in function bool Bsec2::processData(int64_t currTimeNs, const bme68xData &data)
if (BSEC_CHECK_INPUT(bmeConf.process_data, BSEC_INPUT_PRESSURE))
{
inputs[nInputs].sensor_id = BSEC_INPUT_PRESSURE;
inputs[nInputs].signal = data.pressure;
inputs[nInputs].time_stamp = currTimeNs;
nInputs++;
}
And we are not able to read pressure measurement because of that, what coud be the reason as we are using example code basic.ino as it is, just changed I2C pin Wire.setPins(33, 32);
01-31-2024 11:17 PM
Hi Akshay,
Could you send me private msg ?
Thank you.
02-01-2024 05:40 AM
Hi Minhwan,
Private message sent.
Thank you.