opendata-stuttgart / sensors-software

sourcecode for reading sensor data
578 stars 313 forks source link

SDS011 not being read #892

Open Vertikar opened 3 years ago

Vertikar commented 3 years ago

Having a similar issue to https://github.com/opendata-stuttgart/sensors-software/issues/875 But it seems that reboot fixes it, well it did last time at least.

Running Firmware version: NRZ-2020-133/EN (Nov 29 2020) with DHT22 as well as the SDS011.

Not sure on the timing of the issue, will keep a closer eye next time it happens.

Debug log below, it seems the SDS011 isn't even being checked?

`

ws: root ...
output values to display...
R/ DHT22
Temperature (°C): 18.40
Humidity (%): 75.20
----
/R DHT22
## Sending to sensor.community - DHT22
Succeeded - api.sensor.community
## Sending to madavi.de: 
Succeeded - api-rrd.madavi.de
## Sending to opensensemap: 
Succeeded - ingress.opensensemap.org
## Sending to Server FS App: 
Succeeded - server.chillibits.com
Time for Sending (ms): 14472
output values to display...
output values to display...

`

ws: root ...
output values to display...
R/ DHT22
Temperature (°C): 18.40
Humidity (%): 75.20
----
/R DHT22
## Sending to sensor.community - DHT22
Succeeded - api.sensor.community
## Sending to madavi.de: 
Succeeded - api-rrd.madavi.de
## Sending to opensensemap: 
Succeeded - ingress.opensensemap.org
## Sending to Server FS App: 
Succeeded - server.chillibits.com
Time for Sending (ms): 14472
output values to display...
output values to display...

Device status:

Parameter Value
Firmware version NRZ-2020-133ST:1SDK:2.2.2-dev(38a443e)Core:2.7.3-3-g2843a5ac=20703003lwIP:STABLE-2_1_2_RELEASEglue:1.2-30-g92add50BearSSL:5c771be
Free Memory 29240
Heap Fragmentation 3 %
Last OTA 10 hours, 14 min, 53s
NTP Sync 155
NTP Info 10.0.10.5 (?) reachable: Yes
Time (UTC) Tue Apr 13 01:49:37 2021
Uptime 6 days, 10 hours, 21 min, 36s
Reset Reason Power On

  SDS011 | 18-11-16(4c28)   only errors WiFi | 0/-51/4 OTA Return | 200 Sensor.Community | 892 Madavi.de | 13 OpenSenseMap.org | 5 Feinstaub-App | 4 Data Send Return | read Timeout SDS011 | 634   Number of measurements | 3565 Time spent uploading | 11988 ms

Vertikar commented 3 years ago

Confirmed that it came good after a reboot. Is there anyway to further debug this?

Vertikar commented 3 years ago

Run into this issue again, updated device status:

Home » Device status

Parameter | Value -- | -- Firmware version | NRZ-2020-133ST:1SDK:2.2.2-dev(38a443e)Core:2.7.3-3-g2843a5ac=20703003lwIP:STABLE-2_1_2_RELEASEglue:1.2-30-g92add50BearSSL:5c771be Free Memory | 29448 Heap Fragmentation | 3 % Last OTA | 21 hours, 59 min, 13s NTP Sync | 215 NTP Info | 10.0.10.5 (?) reachable: Yes Time (UTC) | Fri Jul 16 06:44:50 2021 Uptime | 8 days, 22 hours, 8 min, 44s Reset Reason | Power On   SDS011 | 18-11-16(4c28)   only errors WiFi | 0/-58/4 OTA Return | 200 Sensor.Community | 231 Madavi.de | 18 OpenSenseMap.org | 20 Feinstaub-App | 9 Data Send Return | connection lost SDS011 | 1116   Number of measurements | 5043 Time spent uploading | 5528 ms