01-02-2021 07:13 PM
Hello,
I am using BME680 with nRF52840 (ARM Cortex M4 with FPU). IDE: Segger Embedded Studio. Compiler: gcc. Normal version of BSEC, Cortex M4F.
Temperature and humidity metering works just fine. BSEC status is OK. But IAQ accuracy remains 0, IAQ remains 25, CO2 equivalent remains 500. Running LP mode. Tried to wait more than hour for sensor to initialize.
Attached file bme_user.c is done according to provided bsec_iot_example.
I found this example in community topic https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BME-680-IAQ-stuck-at-25-and-accuracy-alw...
Attacehd file bme_user_modified.c is done according to community topic - It is adding bsec_update_subscription(), bsec_serialized_configurations_iaq - generic_33v_3s_4d and changing config_load()
Am I missing anything? Could you please help?
Thanks,
Miloslav
01-04-2021 07:46 AM
Hi Sir:
Did you get the correct IAQ with bme_user_updated.c ?
bsec_serialized_configurations_iaq according to your platform configuration must be loaded in config_load function.
01-04-2021 09:50 AM
Hi Jet,
No. Result was the same.
Temperature and humidity metering works just fine. BSEC status is OK. But IAQ accuracy remains 0, IAQ remains 25, CO2 equivalent remains 500. Running LP mode. Tried to wait more than hour for sensor to initialize.
01-05-2021 03:30 AM
Hi Sir:
I checked bme_user_updated.c, didn't find anything is incorrect, but I have one point to doubt that your timestamp is not appropriate.
It is not the system timestamp, only the variable value you created, probably it can not be used as BSEC timpstamp.
I share my source code which is STM32fF411 platform, it is similar with your bme_user_updated.c.
Hopefully, it helps you.
01-05-2021 10:06 PM
Hi Jet,
thanks for exampe code. It seems to be very similar to my code. I am still not able to run it succesfully.
Problem should not be timestamp. Function "HAL_GetTick()" only returns number of elapsed miliseconds from the start of program.
I use the same configuration file ".\BSEC_1.4.7.4\config\generic_33v_3s_4d\bsec_serialized_configurations_iaq.h"
Do you have any other idea where the problem could be?
Thanks.