letscontrolit / ESPEasy

Easy MultiSensor device based on ESP8266/ESP32
http://www.espeasy.com
Other
3.22k stars 2.2k forks source link

BME680 - using bosch lib - IAQ stuck at 25 #1897

Open stoffelll opened 5 years ago

stoffelll commented 5 years ago

Hi,

I'm still trying to use the Bosch lib for reading values of the BME680 (precisly to get the IAQ calculated by the BOSCH lib). Unfortunately the IAQ is stuck at 25 (and IAQ-Accuracy is at 0), which is indicating that the sensor is still in calibration phase. Temperature, Pressure and Humidity is working fine.

With the original Bosch "basic" example, the sensor is running perfectly (https://github.com/BoschSensortec/BSEC-Arduino-library/tree/master/examples/basic).

I already opened a ticket https://github.com/BoschSensortec/BSEC-Arduino-library/issues/25 but I'm not getting answers. Maybe you have an idea what I'm doing wrong in the ESP Easy plugin.

Expected behavior

Finish calibration and provide correct IAQ (not always 25)

Actual behavior

IAQ is always 25. means it is always in calibration

System configuration

Hardware: NodeMCU v3 and BME680

ESP Easy version: 2018-09-22

Thanks for your support! SL

matthew73210 commented 5 years ago

Any luck ? I'll give your latest code a try and post the results !

stoffelll commented 5 years ago

No unfortunately not.

I'll added later (in a few hours) my latest code, as I'm using the latest Lib in the mean while.

Thanks SL

UPDATE: Here is my current code _P056_BME680withBoschLib_v02.txt

Info: I'm replacing the existing plugin 56, so simply rename the existing one.

TD-er commented 5 years ago

Please take into account the license of the Bosch library when posting it. Officially one must sign an agreement on the Bosch website before download of the (pre-compiled) library It is probably not allowed to distribute a pre-compiled firmware binary including this Bosch library, so we have to look into that.

stoffelll commented 5 years ago

ok, thanks for the hint!

I assume it should be allowed to compile it on your own including the Bosch Binaries. Therefore it would be usefull, if we have one plugin-version which works with the official bosch library.

Info: My library-Draft is uploaded in my previous post

matthew73210 commented 5 years ago

Thanks @TD-er didn't think about that.. I have a version based on bluedots binarys and adafruits mqtt libs. Works a charm but a bit of a mismash.

I'll give it a shot @stoffelll .

TD-er commented 5 years ago

A version of a wrapper file and some instructions where to download (and copy) the file to is also workable.

I have to contact Bosch about their license and the restrictions and maybe some written permission to distribute a pre-compiled version.

stoffelll commented 5 years ago

@matthew73210: Did you tried it already?

THanks!

stoffelll commented 5 years ago

@matthew73210: any news?

uzi18 commented 5 years ago

I think it is possible to count IAQ without this lib, but have no such sensor currently.

stoffelll commented 5 years ago

Yeah it is possible, but not that accurate. In addition you can get more values as just the IAQ with the bosch Lib.

roger- commented 4 years ago

Any updates? Does this work?

TD-er commented 4 years ago

As an update for future implementation, see these findings on the forum