12-16-2019 11:07 PM
Hi.
In the sample given in implementing the BSEC, when they call bme680_bsec_loop, they use a save_data-to-flash rate of 10,000 (every 500 minutes). Isn't that too infrequent? Shouldn't it be saved with more frequency, say perhaps every hour or even every 5 minutes or so?
Thanks,
Kevin
Solved! Go to Solution.
12-17-2019 08:10 PM
The value in the example code is provided for reference only and can be fine-tuned to your needs, the most important is that you weight the impact of missing in this example 500 minutes of history to the overall performance in your specific application, and tweak it accordingly.
12-17-2019 10:19 PM
Thanks Handytech.
The save rate is only for the next power on, right? The data is not saved and loaded otherwise, correct?
What are the advantages and disadvantages of having a more frequent save_data rate? Why wouldn't you choose say every 5 minutes or ever hour or something?
Thanks!
12-18-2019 10:17 AM
@kevyk wrote:
The save rate is only for the next power on, right? The data is not saved and loaded otherwise, correct?
Power cycles is typically when you would expect/want to reload the state. In some applications the state of BSEC's internal variables in RAM cannot be saved when entering deep sleep (e.g. of the MCU). Is such a case it would be mandatory to save/restore BSEC's state for every sample.
@kevyk wrote:
What are the advantages and disadvantages of having a more frequent save_data rate? Why wouldn't you choose say every 5 minutes or ever hour or something?
For the sake of BSEC, the impact on the application was described in my previous post. In practice you may need to consider other HW requirements, such as the number of write cycles of your non-volatile memory (e.g. already over 100k times per year if saved every 5 minutes), etc.