msupply-foundation / msupply-cold-chain

Android application for viewing and monitoring temperatures of fridges
GNU General Public License v3.0
3 stars 3 forks source link

Unexplained data loss from sensors #270

Open jmbrunskill opened 7 months ago

jmbrunskill commented 7 months ago

Describe the bug

Some times data points are missing from data collection, this seems more common with some sensors, perhaps due to connectivity issues or maybe due to concurrency issues with multiple sensors in use?

Example data collection report for ~20days

image

Here's an example of data missing in postgres (dashboard) as well as on the tablet. telegram-cloud-photo-size-1-5131973868880243695-y telegram-cloud-photo-size-1-5131973868880243696-y

To Reproduce Steps to reproduce the behavior:

  1. Run a tablet with potentially marginal connectivity to the sensor (possibly more than 1 sensor?)

Expected behavior No missing data points

Additional context Source of dataloss is not known yet.

A previous similar issue was found to be an issue with battery level being read during downloads, which should be fixed now?

adamdewey commented 6 months ago

Seems that this could be a bigger issue that initially thought - current client looks to be experiencing this in the field quite frequently:

image
adamdewey commented 5 months ago

Just losing about 1 per day, on an occasional basis now

image
adamdewey commented 5 months ago

Possibly related to https://github.com/msupply-foundation/msupply-cold-chain/issues/289