07-01-2020 09:31 PM
Hello,
I'm building a new weather station based on BME680(ULP mode) and ESP8266 :Deepsleep(5min). Everything works fine with BSEC library except AIQ. It seems that after each deepsleep/wakeup, BME loses it states? Any idea how to implement this?
My code is based on " basic_config_state.ino".
Thank you.
Solved! Go to Solution.
07-02-2020 03:29 PM
Hi,
Thanks for your inquiry.
In ULP mode, BSEC library updates IAQ values and IAQ accuracy status from 0 to 3 every 5 minutes. I am not sure what you mean by AIQ and BME loses its states. Could you please print out some data from your terminal window to show this?
Thanks.
07-03-2020 08:13 PM - edited 07-03-2020 08:14 PM
Hello,
Sorry AIQ was a typo. I meant IAQ. Now to give you more idea:
IAQ value shows 25 all the time when I use deepsleep on ESP8266(check the picture), accuracy is also 0 all the time. As far as I understand from other threads , each time after ESP8266 wakes up , it reset timestamp on BME680? and I understand it can be fixed by using RTC memory? but don't know how to do it?
Thank you,
07-06-2020 01:43 PM
More output: (3S_LP)
19:53:12.141 -> Deep-Sleep Wake
19:53:12.181 -> 0
19:53:12.381 -> 000000244: setState:
19:53:12.381 -> 000000245: Successfully set state from 1051588384933517
19:53:12.461 -> 000000247: Sensor init done
19:53:13.141 -> 000001019: IAQ 25 accuracy 0
19:53:13.661 -> 000001523: getState:
19:53:13.661 -> 000001523: Deep sleep for 2240 ms. BSEC next call at 3764 ms.
.
.
.
20:04:29.018 -> Deep-Sleep Wake
20:04:29.018 -> 0
20:04:29.218 -> 000000245: setState:
20:04:29.258 -> 000000245: Successfully set state from 1059203732008448
20:04:29.298 -> 000000247: Sensor init done
20:04:30.218 -> 000001233: IAQ 25 accuracy 0
20:04:30.738 -> 000001737: getState:
20:04:30.738 -> 000001737: Deep sleep for 2240 ms. BSEC next call at 3978 ms.
07-06-2020 09:59 PM
Hi,
Thanks for the information. We will get back to you shortly.
Thanks.