12-02-2021 03:33 PM
Hello,
I'm working with a Nucleo-G070RB microcontroller and uses the example code out ouf the library 2.0. I could read the read the ID and the initializaition, configuration and the update of the Subscription works fine. I don't forget the bsec_init.
In the function run(), the function bme68c_get_data is called and only in the first Call I get Data. But this data are absolutly wrong. In each of the next Calls, there is no change. N_filds is 0, so the following loop to proceed the data will not work.
Do you have any idea?
Solved! Go to Solution.
12-03-2021 02:25 AM
Hello doppio-R,
Could we know the link of the example program you refer?
12-03-2021 10:52 AM
12-06-2021 08:37 AM
Hello Hello doppio-R,,
Attachment is example code based github driver code on STM32 platform, you could refer the write, read, delay function implement.
https://github.com/BoschSensortec/BME68x-Sensor-API
Timestamp should be correctly got when you got system time from STM32. You could refer the following code on STM32.
int64_t system_current_time = 0;
uint32_t tick;
tick = HAL_GetTick();
system_current_time = 1000000*(int64_t)tick;
return system_current_time;
12-06-2021 11:55 AM - edited 12-06-2021 03:46 PM
Hello BSTRobin,
thanks for your support. In my Init function was the setBme68xConfigParallel missing.
But now I have an other problem. The heater_profil always stays the same, altough I have already change it and restart the whole system. The sensor get the old information from the function bsec_sensor_control.
I took the heater profile from github, but in my case the measured temperature is to high. There is a 5 Celcius degree difference between the raw data from parallel mode to the raw data from the forced mode. The forced mode is much nearer to my comparison sensor. Even the compensated temperature has a difference about 2-3 degree to the forced mode.
Additionaly the VOC and CO2 values do not change. I already check the library. I'm using the library gcc/M0+ for stm.
Do you have any ideas?
Best regards