Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gas resistance reading is heavily dependent on polling interval #37

Open
bobnecat opened this issue Apr 16, 2020 · 4 comments
Open

Gas resistance reading is heavily dependent on polling interval #37

bobnecat opened this issue Apr 16, 2020 · 4 comments

Comments

@bobnecat
Copy link

As the header states, there is an issue with logic of gas reading part of the code "gas_resistance".

The output of this function is heavily dependent on frequency of polling the sensor. For example if I call this function every 3 seconds, the output would be in the range of 100kOhms, however dropping down polling interval to 1 minute, the average output drops to ~20kOhm while performing reading every 10 minutes result in inconsistent output between 1 and 5kOhms.

I've been reading through the library code, however unable to identify what causes it. Most likely there is a bug in the way heating (temperature and duration) of gas sensor plate is realized in this library.

@Manuel-Sensate
Copy link

Manuel-Sensate commented Apr 23, 2020

I just stumbled over this issue as well.. did you find a solution?

@bobnecat
Copy link
Author

Nope, moreover I think this sensor or the library implementation do not make any sense without original BSEC library. I've switched my polling interval to every 3 seconds (to mimic polling in BSEC library) and my results in the long term are still all over the place. The sensor definitely reacts to changes in conditions, however those reactions are not consistent and don't make much sense overall.

@xjzp
Copy link

xjzp commented Apr 29, 2020

@bobnecat - I had just given up here after seeing that behavior as well, at least I know I'm not alone on that. I thought I had damaged mine running it perhaps too much.

@CptHolzschnauz
Copy link

I can confirm. It changes also with ages. A new (but burnt in for 24h) gives a tenth of an old sensor. As long as Bosch is playing games with secret algorithms it's very difficult to read out a sensible value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants