j-kaltes / Juggluco

Android app for Freestyle Libre 1,2 and 3 and Chinese Sibionics sensors
GNU General Public License v3.0
209 stars 53 forks source link

Sensor sends values in a wrong timeframe #17

Open blaqone opened 1 year ago

blaqone commented 1 year ago

Some L3 sensors seem to send the new glucose value not every 60s, sometimes even faster.

As soon as juggluco receives a value it broadcasts the value to other apps (xdrip ie) and this can lead to problems, as other apps do have sanity checks for new values not before 60s+. In xdrip this causes values to forwarded to AAPS. xdrip is needed for calibrating wrong sensor values thou!

The smartest solution would be to keep the receiving value back until 60s from last received value have passed and then send a broadcast. Not as soon as receiving a new value.

This can lead to errors like this:

8050EB48-AC3E-44B2-8084-CB8E67D53A8A

j-kaltes commented 1 year ago

See https://insulinclub.de/index.php?thread/34255-libre3-2-juggluco/&postID=687429#post687441