04-29-2022 07:08 PM - edited 04-29-2022 07:09 PM
Hi,
I am using BME688 and BSEC2 with nrf52832 (nrf sdk 17.0.2). I am trying to implement the generic/basic example.
The function call to "bsec_sensor_control()" in the run() function updates the next_call member of bsec_bme_settings_t struct but never updates the op_mode (Hence, the sensor is always in sleep mode). Subsequently, I'm unable to get any data output from the sensor.
I have attached my code below. Please suggest how can I correct this error.
Thank you.
Solved! Go to Solution.
05-04-2022 03:55 PM
Hi mudit_sharma,
You could download BSEC 2.0.6.1 package from here: https://www.bosch-sensortec.com/software-tools/software/bme688-software/
Run "BSEC_2.0.6.1_Generic_Release_04302021\examples\bsec2\examples\basic_config_state" reference code, and see BSEC output values.
05-04-2022 04:10 PM
Hi,
I've tried the arduino examples and they work fine. I've converted the C++ code to C for my application and cant understand why bsec_sensor_control() wont update the operation mode but does update the 'next_call' member of the bsec_bme_settings_t struct.
I've uploaded my code in my question. Can you kindly suggest what I might be doing wrong there?
Thanks!
05-05-2022 08:33 AM
Hi mudit_sharma,
We are not sure whether your converted C code is correct. Can you send out the complete code for us to check?
05-05-2022 02:38 PM