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

The driver would suddenly fatally exit after ten or more hours. #10

Closed
peiqinzhao opened this issue Jun 21, 2018 · 5 comments
Closed

The driver would suddenly fatally exit after ten or more hours. #10

peiqinzhao opened this issue Jun 21, 2018 · 5 comments

Comments

@peiqinzhao
Copy link

Hi. I tried to use the driver to detect the temperature in the indoor environment for days. However, it would always suddenly throw a fatal message after collecting the temperature data for ten or more hours. Is there anyway for ignoring this kind of outlier?

@d2r2
Copy link
Owner

d2r2 commented Jun 22, 2018

@hbgxsm95, did you finally found the root cause of this issue?

@peiqinzhao
Copy link
Author

Nope. I set the retry times as 10. Maybe because this number is too small. I set it as 50 and after half days, everything still goes normal.

@d2r2
Copy link
Owner

d2r2 commented Jun 22, 2018

Right, reading this sequential bits with milliseconds in between in Linux user space is not precise in regards of time periods, so relatively small retry count could exhaust. Please, let me know in some later time about stability of sensor reading :)

@peiqinzhao
Copy link
Author

Sure I would love to.

@d2r2
Copy link
Owner

d2r2 commented Oct 2, 2018

Hi @hbgxsm95. It seems I found and fixed root cause of issue, that lead to fatal exit after long application run. Issue described in #13 and fixed in #14 (fix already merged to master).
Sorry for missing this from the beginning, I hope it will be useful for you. Thanks!

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

No branches or pull requests

2 participants