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

Invalid firmware version #10

Open
lewapek opened this issue Nov 18, 2018 · 4 comments
Open

Invalid firmware version #10

lewapek opened this issue Nov 18, 2018 · 4 comments
Labels
good first issue Good for newcomers

Comments

@lewapek
Copy link
Owner

lewapek commented Nov 18, 2018

Sensor board sometimes returns incorrect firmware version with status OK.
Some of tested sds011 sensors returned 1.0.0 version [year.month.day].

Solution:
version should be checked against possible ranges (at least month and day) and result in different status (not ok - it may require new status)

@lewapek lewapek added the good first issue Good for newcomers label Mar 8, 2019
@cyberman54
Copy link
Contributor

My board returns with

ESP_LOGI(TAG, "SDS011 firmware version %s", (sds.queryFirmwareVersion().toString()).c_str());

this

SDS011 firmware version Firmware version [year.month.day]: -1.-1.-1

@lewapek
Copy link
Owner Author

lewapek commented Feb 16, 2022

I remember I had the same problem - that's why I created the issue :)
Sometimes it happens - the solution is to retry - you should get the correct version (maybe the sensor needs some time to warm-up)

@cyberman54
Copy link
Contributor

It seems a sds.wakeup() right after opened the serial bus, before sending first command, avoids this issue.

@lewapek
Copy link
Owner Author

lewapek commented Feb 16, 2022

it was non-deterministic in my case
sometimes works - sometimes I needed to retry once

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

No branches or pull requests

2 participants