NFC Fails on libre2 direct for ~ hour - smoothed data problem? #3527
Replies: 8 comments 14 replies
-
I've seen this often, values from scanning are deleted. I think the root cause is zero values being assigned when an error is flagged on data read from FRAM. The zero then leads to an out of bounds smoothed value which is rejected. The one minute values at 14806 and 14809 are flagged in your screenshot. Sometimes OOP2 shows a negative value. It appears to happen most if you NFC scan around the time of a Bluetooth transmission, if yo usee OOP2 collect a value and wait 20s then scan it may occur less (though often we scan because there is no BLE value). |
Beta Was this translation helpful? Give feedback.
-
Were there any flags setting an error condition?
…On Fri, 14 Jun 2024, 09:44 nigelkeirross, ***@***.***> wrote:
Thanks. is FRAM the sensor memory? Thre NFC failed again this morning for
about 45 minutes - and same pattern - it seemingly gets good readings, but
according to the logs, the smoothed value is 0, or GlucoseLevelSmoother -1.
This to me points to a bug in the smoothing process. In this case 3
consecutive glucose readings at 2743,2744 & 2745 all Glucoselevel 101,
GlucoseLevelRaw 1075. So it looks like xDrip is getting good readings from
the NFC, BUT somehow the smoothed values become 0, and so no reading
accepted? Is there a way to turn smoothing off?
—
Reply to this email directly, view it on GitHub
<#3527 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASFVQBYCVEF4KCTWK24NS6TZHKUNJAVCNFSM6AAAAABJA2K2CKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TONZSGI3DO>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
I don't really understand the question. Where would the flags be set, and
what would they look like?
…On Fri, 14 Jun 2024, 19:18 PhilTU, ***@***.***> wrote:
Were there any flags setting an error condition?
On Fri, 14 Jun 2024, 09:44 nigelkeirross, ***@***.***> wrote:
> Thanks. is FRAM the sensor memory? Thre NFC failed again this morning
for
> about 45 minutes - and same pattern - it seemingly gets good readings,
but
> according to the logs, the smoothed value is 0, or GlucoseLevelSmoother
-1.
> This to me points to a bug in the smoothing process. In this case 3
> consecutive glucose readings at 2743,2744 & 2745 all Glucoselevel 101,
> GlucoseLevelRaw 1075. So it looks like xDrip is getting good readings
from
> the NFC, BUT somehow the smoothed values become 0, and so no reading
> accepted? Is there a way to turn smoothing off?
>
> —
> Reply to this email directly, view it on GitHub
> <
#3527 (reply in thread)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ASFVQBYCVEF4KCTWK24NS6TZHKUNJAVCNFSM6AAAAABJA2K2CKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TONZSGI3DO>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***
> com>
>
—
Reply to this email directly, view it on GitHub
<#3527 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAI7QHLIIMSVKMPWK73P6TZHMXZFAVCNFSM6AAAAABJA2K2CKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TONZXGU3DQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
== but do we need to NFC scan much these days ?
Thanks. I only NFC when I get a missed reading. It also seems to (re)
initiate a connection. I sometimes have periods where I lose connections
for up to 2hours at a time so end up NFCing every 5 minutes for hours at a
time.
…On Sat, 15 Jun 2024, 08:07 PhilTU, ***@***.***> wrote:
I don't know if they are, it's a sensor error code I suspect and we're
using software that is effectively reverse engineered
https://github.com/captainbeeheart/openfreestyle/blob/master/docs/reverse.md
. You might get a "try again in 10 minutes" alert from Librelink in this
scenario.
I don't fully understand it, but my feeling is the flagged values are set
to zero by LibreTrendPoint for safety. Why the smoothed value is -1 I don't
know, it must be a response to the 0 value being below the 40 mg/dl sensor
minimum ?
One day I might dig into the code and try to understand how this works.
You raise a good point though, the negative values and missing data that
occur with NFC scans are a pain, but do we need to NFC scan much these days
?
—
Reply to this email directly, view it on GitHub
<#3527 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAI7QEKA5DHZHIDFVD5A7TZHPR4BAVCNFSM6AAAAABJA2K2CKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TOOBQGMZTK>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Thanks. From memory (I am travelling), my flags were 2080, so not sure how
that relates. What does RF mean?
Note I never knowingly NFC when BT is connected.
…On Sat, 15 Jun 2024, 12:26 PhilTU, ***@***.***> wrote:
RF(32)
Thanks, the RF code came up earlier on xDrip from a sensor that was
running very low glucose readings.
—
Reply to this email directly, view it on GitHub
<#3527 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAI7QDQ6ZWWL3GDYKNI5N3ZHQQFTAVCNFSM6AAAAABJA2K2CKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TOOBRGMZDM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Guido,
In general I only NFC when connection is lost and I have missed a (5
minute) reading. Is it easy to see from the logs which readings come from
NFC Vs BT. (I can look in oop2 to find recent BT readings).
Also where do I find the decompiled code you refer to?
…On Sat, 15 Jun 2024, 09:54 Guido Soranzio, ***@***.***> wrote:
Whenever you scan a Libre 2 via NFC you typically receive a zeroed raw
glucose value via Bluetooth as a signal to reinterpret the temperature
field as an error code.
One can easily find the definitions of such DataQuality constants in the
decompiled code, and in fact you can verify that the 0x0020 (32) flag
that you receive along the dummy 0 glucose raw value corresponds to RF,
since the measurement is corrupted by the power usage of the NFC antenna.
—
Reply to this email directly, view it on GitHub
<#3527 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAI7QG7WZ4ZDCAGYLV4SM3ZHP6LZAVCNFSM6AAAAABJA2K2CKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TOOBQG4YDI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
I am running Libre2 direct (no bridge). I had been receiving reading happily for some time, but then BT became disconnected. After a missed reading, I attempted an NFC scan, but this failed to generate a reading, despite making the usual NFC vibrations & sounds.
I looked in the log file, as seen below & I noticed that it appeared to be getting a correct/reasonable raw reading, but the SMOOTHED readings were 0, or in one case -1, and this seems to be the cause of the reading being rejected.
Reading Data
18:07 Removing point glucoseData = {sensorTime = 14809 glucoseLevel=113 glucoseLevelRaw=1486 glucoseLevelRawSmoothed = 0 flags=2080 source=FRAM glucoseLevelSmoothed-1}
and
LibreTrendPoint
18:07 LibreTrendPoint.isError returning true {sensorTime=14809 rawSensorValue=1486 flage=2080 source=FRAM glucoseLevel 0}
Can anyone shed any light on why this might be happening, and what can be done to fix this? It did eventually recover, but I missed about an hour of readings.
![NFC-fails](https://private-user-images.githubusercontent.com/21008320/337969816-235ba4df-b13a-4c07-bef5-f09934e4aa08.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyMTIwNDgsIm5iZiI6MTcyMTIxMTc0OCwicGF0aCI6Ii8yMTAwODMyMC8zMzc5Njk4MTYtMjM1YmE0ZGYtYjEzYS00YzA3LWJlZjUtZjA5OTM0ZTRhYTA4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE3VDEwMjIyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFmNGFhODQ5OTRkOWI2YjNiNWZlYTE4Y2EwNzA2NmNkZjFmYWRlMGZlN2NjMjU2OGFiZmE2MDAwNzcxZjQ3ZmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.EwaBaPTLtZYXl9XPYworIYU7GiTvEX_q9iBPZnxfOk0)
Beta Was this translation helpful? Give feedback.
All reactions