nettigo / namf

Nettigo Air Monitor Firmware
GNU General Public License v3.0
33 stars 19 forks source link

SDS011 (with Luftdaten API disabled) not refreshing after upgrade to NAMF-2020-38 #37

Closed pmendla closed 3 years ago

pmendla commented 3 years ago

SDS011 gets only first measurement after boot, then same value is constantly displayed on values page and uploaded to server. Other sensors (BME280, HECA) are refreshing as configured.

SDS011 works properly again after downgrade to 2020-37.

netmaniac commented 3 years ago

Could You post all SDS011 related values from /status page (after few measurements, not just after start)?

Wojciech-X commented 3 years ago

the same with my NAM, with new firmware SDS011 values are not being updated, only once just after reboot.   after about 2h from last reboot, on /status page in SDS011 section I have:

SDS011 | Status | 11 SDS011 | Status change | 6444528 SDS011 | Version data | 2018-11-16(07AC) SDS011 | Liczba braków/wszystkich odczytów z SDS (zerowana przy każdej próbie aktualizacji) | 0/2 SDS011 | Checksum failures | 0.00% 0/33

 

netmaniac commented 3 years ago

Do You have sending data to SensorCommunty (Luftdaten) enabled? It looks like code resetting internal SDS state is run only when sending data to LD. If it is not enabled (sending to LD) could You enable it for a test?

pmendla commented 3 years ago

I confirmed this root cause:

Logs with disabled LD:

Just after boot: SDS011 Status 3 SDS011 Status change 1602 SDS011 Liczba braków/wszystkich odczytów z SDS (zerowana przy każdej próbie aktualizacji) 0/1 SDS011 Checksum failures 0.00% 0/34

After first measurement SDS011 Status 11 SDS011 Status change 10258 SDS011 Liczba braków/wszystkich odczytów z SDS (zerowana przy każdej próbie aktualizacji) 0/2 SDS011 Checksum failures 0.00% 0/55 No more SDS011 changes after next measurements, only "Status change" is counting milliseconds.

Logs with enabled LD:

Just after boot: SDS011 Status 3 SDS011 Status change 844 SDS011 Liczba braków/wszystkich odczytów z SDS (zerowana przy każdej próbie aktualizacji) 0/1 SDS011 Checksum failures 0.00% 0/40

After first measurement SDS011 Status 3 SDS011 Status change 48728 SDS011 Liczba braków/wszystkich odczytów z SDS (zerowana przy każdej próbie aktualizacji) 0/2 SDS011 Checksum failures 0.00% 0/61

After second measurement SDS011 Status 3 SDS011 Status change 46281 SDS011 Liczba braków/wszystkich odczytów z SDS (zerowana przy każdej próbie aktualizacji) 0/3 SDS011 Checksum failures 0.00% 0/82 Results are properly uploaded to API

Wojciech-X commented 3 years ago

I can also confirm, after enabling "API Sensor Community" it started to update fine on my device.

netmaniac commented 3 years ago

I have released new beta (NAMF-2020-40rc2). Can You switch update channel to beta and test if it works for You?

Wojciech-X commented 3 years ago

Yes, on NAMF-2020-40rc2 with API Sensor Community disabled it refreshes fine.

pmendla commented 3 years ago

NAMF-2020-40rc2 works well.

Can we expect NAMF-2020-38 hotfix or we have to wait until official NAMF-2020-40 is released to switch back to stable updates channel?

netmaniac commented 3 years ago

I'm sorry for delay @pmendla I will do stable release -40 in few days

netmaniac commented 3 years ago

Release -40 is on update server.