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

Q's related to linux drivers #1

Closed
jodavaho opened this issue Oct 19, 2021 · 2 comments
Closed

Q's related to linux drivers #1

jodavaho opened this issue Oct 19, 2021 · 2 comments

Comments

@jodavaho
Copy link

  • Does the sensor still auto-clean according to the pre-set duration? Should I write to start_cleaning periodically? What should I write?
  • Can the sensor sleep between reads? or can sleep be commanded?
  • If I read from the massconcentration files, does that interrupt cleaning? If so, how can I synchronize my monitoring to allow cleaning?
    • Perhaps space the reads long enough to allow cleaning? How long does it clean then?
@rnestler
Copy link

Hi @jodavaho

Please note that this is just a back port of the driver from the official kernel driver, which is not maintained by Sensirion.

Does the sensor still auto-clean according to the pre-set duration?

The sensor will do the auto-clean according to the configured auto cleaning interval. As far as I can see the driver allows to set this, so it should work.

Should I write to start_cleaning periodically?

Not if you enabled the auto-clean.

Can the sensor sleep between reads? or can sleep be commanded?

As far as I can tell sleep/wakeup isn't implemented in this driver. See https://github.com/Sensirion/embedded-sps for a driver which works in user-space and has sleep/wakeup implemented.

Note that sleep is possible between measurements, but that the sensor needs some warmup time until it gives you proper results. So only use sleep if you have long intervals between measurements.

If I read from the massconcentration files, does that interrupt cleaning? If so, how can I synchronize my monitoring to allow cleaning?

See the datasheet:

Measurement values are not updated while the fan-cleaning is running.

So you will just read the same value during fan-cleaning.

@jodavaho
Copy link
Author

@rnestler Thank you!

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

2 participants