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

Stat the sampling success rate #11

Closed
winlinvip opened this issue Jul 8, 2017 · 2 comments
Closed

Stat the sampling success rate #11

winlinvip opened this issue Jul 8, 2017 · 2 comments

Comments

@winlinvip
Copy link
Owner

winlinvip commented Jul 8, 2017

It seems DHT11 is more stable than DHT22. DHT22 may sample failed for 101 or 105 sometimes. Let me write examples to stat the success rate.

@winlinvip
Copy link
Owner Author

Refine the wait time for DHT22, wait more time according to the protocol.

@winlinvip
Copy link
Owner Author

winlinvip commented Jul 8, 2017

I tested the v1.0.6.

For DHT11, using examples/DHT11ErrCount, it works well:

DHT11, 28 *C, 30 H, total: 100, err: 0, success rate: 100.00%
DHT11, 28 *C, 30 H, total: 200, err: 0, success rate: 100.00%
DHT11, 28 *C, 30 H, total: 300, err: 0, success rate: 100.00%
DHT11, 28 *C, 30 H, total: 400, err: 0, success rate: 100.00%
DHT11, 28 *C, 30 H, total: 500, err: 0, success rate: 100.00%
DHT11, 29 *C, 29 H, total: 600, err: 0, success rate: 100.00%
DHT11, 28 *C, 30 H, total: 700, err: 0, success rate: 100.00%
DHT11, 28 *C, 30 H, total: 800, err: 0, success rate: 100.00%
DHT11, 29 *C, 29 H, total: 900, err: 0, success rate: 100.00%
DHT11, 29 *C, 29 H, total: 1000, err: 0, success rate: 100.00%
DHT11, 28 *C, 30 H, total: 2000, err: 0, success rate: 100.00%
DHT11, 28 *C, 30 H, total: 3000, err: 0, success rate: 100.00%
DHT11, 23 *C, 21 H, total: 9841, err: 11, success rate: 99.89%
DHT11, 24 *C, 30 H, total: 10351, err: 11, success rate: 99.89%

For DHT22, using examples/DHT22ErrCount, it works well:

DHT22, 28.50 *C, 66.70 RH%, total: 100, err: 0, success rate: 100.00%
DHT22, 27.60 *C, 73.70 RH%, total: 200, err: 0, success rate: 100.00%
DHT22, 28.30 *C, 71.70 RH%, total: 300, err: 0, success rate: 100.00%
DHT22, 27.60 *C, 69.10 RH%, total: 400, err: 0, success rate: 100.00%
DHT22, 27.90 *C, 76.60 RH%, total: 500, err: 0, success rate: 100.00%
DHT22, 28.00 *C, 68.80 RH%, total: 600, err: 0, success rate: 100.00%
DHT22, 27.80 *C, 75.30 RH%, total: 700, err: 0, success rate: 100.00%
DHT22, 28.20 *C, 69.70 RH%, total: 800, err: 0, success rate: 100.00%
DHT22, 27.80 *C, 72.60 RH%, total: 900, err: 0, success rate: 100.00%
DHT22, 28.50 *C, 69.70 RH%, total: 1000, err: 0, success rate: 100.00%
DHT22, 28.30 *C, 66.60 RH%, total: 2000, err: 0, success rate: 100.00%
DHT22, 28.40 *C, 73.60 RH%, total: 3000, err: 0, success rate: 100.00%
DHT22, 28.00 *C, 67.90 RH%, total: 4000, err: 0, success rate: 100.00%
DHT22, 28.20 *C, 66.40 RH%, total: 4990, err: 0, success rate: 100.00%

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

1 participant