sds-dust-sensors-arduino-library icon indicating copy to clipboard operation
sds-dust-sensors-arduino-library copied to clipboard

Invalid firmware version

Open lewapek opened this issue 7 years ago • 4 comments
trafficstars

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 avatar Nov 18 '18 15:11 lewapek

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

cyberman54 avatar Feb 16 '22 11:02 cyberman54

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)

lewapek avatar Feb 16 '22 14:02 lewapek

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

cyberman54 avatar Feb 16 '22 16:02 cyberman54

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

lewapek avatar Feb 16 '22 16:02 lewapek