Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No BG values when Dexcom app shows "low" #44

Open
OFlannigan opened this issue Jun 9, 2023 · 9 comments
Open

No BG values when Dexcom app shows "low" #44

OFlannigan opened this issue Jun 9, 2023 · 9 comments

Comments

@OFlannigan
Copy link

I went hypo tonight. So low, that the Dexcom app was only displaying "low". But was still receiving readings, so the sensor was connected all the time.
Screenshot_20230609-014229

However, during the time of "low" my AAPS was not receiving any values from the Dexcom app. You can tell by the pale-red dots in the overview, that the values are recalculated.
Screenshot_20230609-014222

The BYODA-tab also shows no readings from Dexcom during the period 1:16 to 1:36.
Screenshot_20230609-014217

As soon as my levels started to rise and Dexcom was displaying an actual value, rather than "low", AAPS also picked up a value and was displaying as normal.

I've just switched from Dexcom G6 with BYODA to patched Dexcom app with G7, so I'm a bit stumped on whether this is an expected behavior.
Running the patched app's latest release 1.6 and AAPS 3.2.0 dev i.

@CaptainBalou
Copy link

I can confirm that behaviour. I had that previously with DiaKem Dexcom app 1.4.0.3906.

@khskekec
Copy link
Contributor

khskekec commented Jun 9, 2023

Oh, thats sounds weird. I don't habe such a problem actually with g7 1.3 and the diakem aaps version. Possible that aps filtering it depending on some condition. It would be great if you could send a logcat capture during this phases to see whether if something is sent or not from dexcom.

Additionaly I will check the aaps Code of your specific version.

@OFlannigan
Copy link
Author

I've attached the logs for that period here.
Please let me know if you need something else to investigate further.

AndroidAPS.2023-06-09_00-45-52.0.zip
AndroidAPS.2023-06-09_00-45-52.1.zip

@CaptainBalou
Copy link

Is there a how-to what I've to do to logcat debug that?

@khskekec
Copy link
Contributor

No, so far. We should add it to the Readme.

@khskekec
Copy link
Contributor

khskekec commented Jun 14, 2023

Hey,

i checked the logs and it looks like that the data was sent correctly by Dexcom App and it is also inserted into database:

01:21:28.458 [main] D/DATABASE: [DataReceiver.onReceive():36]: onReceive com.dexcom.g7.EXTERNAL_BROADCAST Bundle{ glucoseValues => Bundle[mParcelledData.dataSize=152]; }Bundle
01:21:28.502 [RxCachedThreadScheduler-42] D/DATABASE: [CompatDBHelper$dbChangeDisposable$2.accept():59]: Firing EventNewBg GlucoseValue(id=194726, version=0, dateCreated=1686266488501, isValid=true, referenceId=null, interfaceIDs_backing=InterfaceIDs(nightscoutSystemId=null, nightscoutId=null, pumpType=null, pumpSerial=null, temporaryId=null, pumpId=null, startId=null, endId=null), timestamp=1686266486000, utcOffset=7200000, raw=null, value=37.0, trendArrow=FLAT, noise=null, sourceSensor=DEXCOM_NATIVE_UNKNOWN)
01:21:28.503 [RxCachedThreadScheduler-42] D/DATABASE: [CompatDBHelper$dbChangeDisposable$2.accept():64]: Firing EventNewHistoryData 1686266486000 GlucoseValue(id=194726, version=0, dateCreated=1686266488501, isValid=true, referenceId=null, interfaceIDs_backing=InterfaceIDs(nightscoutSystemId=null, nightscoutId=null, pumpType=null, pumpSerial=null, temporaryId=null, pumpId=null, startId=null, endId=null), timestamp=1686266486000, utcOffset=7200000, raw=null, value=37.0, trendArrow=FLAT, noise=null, sourceSensor=DEXCOM_NATIVE_UNKNOWN)
01:21:28.506 [RxCachedThreadScheduler-44] D/NSCLIENT: [NSClientPlugin$onStart$5.accept():113]: ● QUEUE Resend started: NEW_DATA
01:21:28.507 [DefaultDispatcher-worker-3] D/DATABASE: [DexcomPlugin$DexcomWorker.doWorkAndLog():186]: Inserted bg GlucoseValue(id=194726, version=0, dateCreated=1686266488501, isValid=true, referenceId=null, interfaceIDs_backing=InterfaceIDs(nightscoutSystemId=null, nightscoutId=null, pumpType=null, pumpSerial=null, temporaryId=null, pumpId=null, startId=null, endId=null), timestamp=1686266486000, utcOffset=7200000, raw=null, value=37.0, trendArrow=FLAT, noise=null, sourceSensor=DEXCOM_NATIVE_UNKNOWN)
01:21:28.507 [DefaultDispatcher-worker-3] D/WORKER: [LoggingWorker$doWork$2.invokeSuspend():27]: Worker result SUCCESS for class info.nightscout.source.DexcomPlugin$DexcomWorker
01:21:28.517 [DefaultDispatcher-worker-2] I/NSCLIENT: [DataSyncSelectorV1Impl.processChangedGlucoseValues():370]: Loading GlucoseValue data Start: 194725 GlucoseValue(id=194726, version=0, dateCreated=1686266488501, isValid=true, referenceId=null, interfaceIDs_backing=null, timestamp=1686266486000, utcOffset=7200000, raw=null, value=37.0, trendArrow=FLAT, noise=null, sourceSensor=DEXCOM_NATIVE_UNKNOWN) forID: 194726
01:21:28.519 [RxCachedThreadScheduler-44] D/NSCLIENT: [NSClientPlugin$onStart$5.accept():113]: ► ADD entries Sent PairGlucoseValue {"device":"AAPS-Dexcom","date":1686266486000,"dateString":"2023-06-08T23:21:26.000Z","isValid":true,"sgv":37,"direction":"Flat","type":"sgv"} 194725/194726

This excerpt shows the procedure for 01:21:00, the first missing value. In my opinion the problem in this case, because the data is broadcasted correctly, in AAPS.

I am currently on AAPS 3.1.0.10. Do you have a chance to test it with this specific version. Maybe we can define this as special AAPS problem?

Kind regards

Selcuk

@OFlannigan
Copy link
Author

Me and @khskekec just had a call to discuss this further.

According to the logs, the value was correctly transfered by the Dexcom app and also received in AAPS.
But the values are still not displayed and also not back filled.
The logs also show that the value was submitted to Nightscout, but it's also not visible there.

I will now create an issue in the AAPS repo. Maybe the devs there have an idea on how to fix this.

@khskekec will also try to test this with an earlier version than mine, but can't tell, when he'll have the chance to do so.

@OFlannigan
Copy link
Author

OFlannigan commented Jun 15, 2023

Milos replied to the issue I created in the AAPS repo.
Apparently the value 37 is considered an invalid value by Dexcom.

nightscout/AndroidAPS#2586 (comment)

I will monitor this behavior in case I'll go that low again

@ideaweb
Copy link

ideaweb commented Apr 7, 2024

Same issue with "high". It was never an issue with BYODA and G6. But without showing any value like 401, Loop im APS "stops".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants