06-16-2023 03:16 PM
I'm using a MKRWAN 1310 and a single BME688 sensor.
My device is battery-powered and is sending data via LoRa to The Things Network, so I'm using the "
06-19-2023 05:18 PM
Hi heyhaiden,
As you used config/generic_33v_300s_4d/bsec_iaq.txt" config file, your host had enough time to sleep for power save, and call bsec_sensor_control() when your host is awakened and 300s have arrived. This function should be called by host.
06-21-2023 06:34 PM
I'm looking at the ESP32DeepSleep example where it says in the readme:
compensated temperature, compensated humidity, IAQ & Static IAQ are not supported in this example code because bsec expects the time to be ticking but during deepsleep the time resets to 0. To overcome this the sleep duration can be added to the millis and passed to bsec from the example code.
Changes in bsec.c is also needed for this to work.
What would those changes be?
08-23-2023 11:12 AM
Hi heyhaiden,
Because the sleep time is 300 seconds, it is a long time, so temperature and humidity will have no meaning in compensating after 300 seconds.
If your host platform uses RTC, counting will work properly regardless of whether the host is running or sleeping. After the host wakes up and before executing BSEC, you can read the real-time timestamp of RTC and provide it to BSEC.
04-18-2024 10:53 AM
Hello @BSTRobin
I'm using an esp32 and it has RTC.
Based on the esp32DeepSleep.ino
example using the configuration:
config/generic_33v_3s_4d/bsec_iaq.txt
What should I change to have the IAQ & Static IAQ value, I know that I should pass the millis value and pass it to the BSEC, but how do I do that, can you give a brief example of how to do it?