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

Checksum fail after concentration larger than 600(sometimes 1000 cannot confirm this at the moment) #3

Open
joshishrey opened this issue Dec 30, 2020 · 1 comment

Comments

@joshishrey
Copy link

Checksum fails by 2 or 4 when the concentration of aerosols get high. I have a hunch this happens when the concentration is more than the measuring limit. Is this the outcome that is expected when the concentration is too high?

@jeffeb3
Copy link

jeffeb3 commented Oct 15, 2022

I think the issue is here:
https://github.com/Electronza/HPMA115S0/blob/master/src/hpma115s0.cpp#L95
The modulo is % 0xFF and the data sheet says it should be modulo 256, which is % 0x100. So if that number is greater than 255, then this modulo is wrong.

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