NightscoutFoundation / xDrip

Nightscout version of xDrip+
https://jamorham.github.io/#xdrip-plus
GNU General Public License v3.0
1.42k stars 1.15k forks source link

checksum failed with xdrip, miaomiao and Freestyle Libre 2 #764

Closed brucke closed 3 years ago

brucke commented 5 years ago

Hi,

since i have the new version of Freestyle Libre Version 2 i get the error message "checksum failed".

Samsung Galaxy S9 Android Version 8.0.0 Freestyle Libre 2 xdrip+ Version 20190125-41e549

I tired:

What can i do? Is the current version of xdrip able to scan values from Freestyle Libre 2? Could the new version of Freestyle Libre 2 the problem?

screenshot_20190128-185119_xdrip screenshot_20190128-184808_xdrip

dabear commented 5 years ago

Libre 2 is currently not supported due to encryption.

brucke commented 5 years ago

thx :) i thought so. Maybe i can fix it ;)

jason3109 commented 5 years ago

My wife just got a miaomiao and hers is doing the same thing. Were you able to ever get them to link up and not say checksum failed?

tzachi-dar commented 5 years ago

Libre 2 is currently not supported due to encryption.

dq1967 commented 5 years ago

I get a lot of checksum errors with Miaomiao and Libre (version 1). I understand it is related to the contact between the MiaoMiao and the libre, but I am not so sure. I get a multiple dropped signals and checksum errors in xDrip+ but none in Glimp using the same sensor / Miaomiao setup. Is there a way to turn down xDrips sensitivity to these errors?

filipedanunes commented 5 years ago

@bruke any development 😉?

brainopera commented 5 years ago

I'm also getting checksum error on the a new libre one sensor. Reads fine on my libre reader device. Been happy past few months and trying to wrap my head around this issue.

brucke commented 5 years ago

@filipedanunes : i started the first analysis but i have to less experience for that. At the moment i have no further informations.

brucke commented 5 years ago

sorry wrong button :)

pgraham9999 commented 5 years ago

Where can I find the log files?

m1st0 commented 5 years ago

Since the FreeStyle LibreLink software does read the 14-day US sensors and uploads the readings to LibreView, I was wondering as for a current (yet poor) workaround:

I am supposing the CSV seems easily translatable into a XDrip+ database. All that would need to be written is credential storage just as if we are following NightScout or DexShare and the operations to obtain data from LibreView and accurately process it.

m1st0 commented 5 years ago

Well, for additional info, it is a POST operation to https://www2.libreview.com/Dashboard/ValidatePatientDownloadExport with some of the following headers (I removed the obvious ones sent with a POST):

And the request body:

However, since they pose this behind a Google reCAPTCHA and verification token it appears they have worked to limit it to once per each user interaction.

zackallan commented 5 years ago

I updated the firmware of MM1 to version 38 which should bring support for the FreeStyle Libre 2 sensors. But unfortunately the "Checksum failed" error persists with the latest xDrip+ nightly.

ledrexter commented 5 years ago

I updated the firmware of MM1 to version 38 which should bring support for the FreeStyle Libre 2 sensors. But unfortunately the "Checksum failed" error persists with the latest xDrip+ nightly.

The same situation here. version 38 and libre 2 get "checksum failed"

MasterPlexus commented 5 years ago

@zackallan and @ledrexter , please contact the Miaomiao company, as this issue after update of the Firmware with still checksum-errors for the Libre 2 is more related to the firmware then to xDrip in my eyes.

JoernL commented 5 years ago

Where did you get the fw 38 for MM1? There is no hint on website nor an update option in tomato app.

zackallan commented 5 years ago

@JoernL They posted an .apk file on their Facebook group.

jamorham commented 5 years ago

For those of us without facebook, a mirror or link to the file would be helpful.

tobiasknudsen commented 5 years ago

Here is the Facebook post Skjermbilde 2019-08-20 kl  15 53 15

And here is the .apk file:

MM1_new_FW-release.apk.zip

I have not tried to update my MM1 yet.

raschinger commented 5 years ago

Hi, I'm facing the same issue here. I've updated the firmware of MM1 and get the same "error" chacksum failed. But on the other hand it's working on the original Tomato app without any issues.

tzachi-dar commented 5 years ago

Anyone is here with us 14 days sensors and want to help debugging the issue?

SerpensAlatus commented 5 years ago

I also updated the MM1 to .38. It works with the Tomato App (Android) using a Libre2 Sensor. I get the checksum errors too. I don't think its a firmwareproblem. Maybe the xdrip+ collector needs an update?

ppppd commented 5 years ago

@tzachi-dar I have US 14 day sensors. No miaomiao, but droplet is on its way. Let me know if I can help.

tzachi-dar commented 5 years ago

@ppppd what I need you to do is start the sensor with abbott program (maybe you can connect to an already running sensor), and then run on it with xposed. (https://forum.xda-developers.com/showthread.php?t=3034811) Than with the information that you will give I can make sure that oop algorithm will work.

ppppd commented 5 years ago

@tzachi-dar Current sensor was started via librelink app on my phone 5 days ago. Phone can't run xposed but I have it on an old tablet (with NFC). Does this work?

edit: my mistake, started sensor with reader device

tzachi-dar commented 5 years ago

@ppppd this should probably work. Can you scan the same sensor with the tablet and see if you can get a reading with it?

ppppd commented 5 years ago

@tzachi-dar tablet scans fine with librelink

tzachi-dar commented 5 years ago

This is great news @ppppd LibreXposed-v1.1-debug.txt

What you need to do is: 1) rename the file that I have attached to .apk 2) Than install it on your tablet.

3) make sure to enable it in xposed (they have a screen for that). After that reboot the tablet for the changes to take effect.

last step is to connect the tablet to a pc, and run: adb logcat | grep -i xposed > output.txt

Wait a few seconds, and then press ctrl c to exit the application.

Make sure that the file that is created is not empty, and send it to tzachi.dar@gmail.com

Next step

arty-name commented 5 years ago

MiaoMiao/Tomato developers might not have an incentive to open up the protocol since they are charging hefty 25$/year for "premium" features of their app like custom alert sounds

LubomirKovalcik commented 4 years ago

Anyone has managed to use miaomiao1 with fsl2 and xdrip? If yes what fw version and xdrip are you using?

brucke commented 4 years ago

Hi i use https://github.com/jcwarrior/Libre2-patched-App instead the official LibreLink App. With FreeStyleLibre2 a BLE connection to mobile phone is already availalbe. The patched libre link app receives the value and forwards the information to xDrip.

i use this setup for 5 month and i have no problems.

LubomirKovalcik commented 4 years ago

I have exactly same setup, but I have 2nd sensor and keeps giving me much lover readings. Also calibration in xDrip has no effect on this. Therefore I was looking for way to use MM with Libre2

steve8x8 commented 4 years ago

@LubomirKovalcik Readings of Libre 2 sensors 20 mg/dL below the finger-stick ones seem to be common, and not being able to set the "low alarm" below 60 isn't really nice. The calibration limitation you're seeing is being discussed in #1138 - you may perhaps overcome it by inserting a fake calibration (max 20 off) before adding the final calib entry?

malloy139 commented 4 years ago

I also get the checksum error using MM1 and Libre2. No difference if firmware version 37, 38 or 39 is on MM. When using the OOP algorithm app in the log I see checksum_ok=true, but no BG is displayed. I also see these messages: Got null pointer trying to set CCCD descriptor. And: Backtrack: nfcreaderx:: handlegoodreading -> LibreBlock::createAndSave

elrufoelrufo commented 4 years ago

@filipedanunes : i started the first analysis but i have to less experience for that. At the moment i have no further informations.

Hi @brucke , Any update on this? The patched app is not compatible with Wear OS collector. Would be nice to have a fix of this issue.

Thanks for your help

brucke commented 4 years ago

Hi @elrufoelrufo , sorry i have no update on this topic. the solution with the patched libre link app and xdrip works fine on Android! I have no problems.

Therefore i stopped analyzing and working on this topic.

But i will a smart watch also. Good to know there are some problems with the patched app. Whats the problem with Wear OS and the patched app?

JoernL commented 4 years ago

There is only a problem with wear os and the patched app when you want to collect readings without your phone. This works only with an extra transmitter and i would suggest the Bubble. I can confirm that bubble + xdrip + oop works with Libre 2 sensors. Dont't forget to install LibreOOP.apk on your watch, too.

LubomirKovalcik commented 4 years ago

Any news on this problem? I have libre2 sensor with broken bluetooth probably, because scanning is still working, but alarms or patched libre app does not and I also have old miao1 laying around so i would like to use it.

tzachi-dar commented 4 years ago

This is working now. See instructions on https://medium.com/@miaomiaoreader/how-to-make-libre-us-14-days-sensors-work-with-miaomiao2-on-xdrip-35b431a40940

tolot27 commented 4 years ago

@tzachi-dar Can this issue be closed, if it "is working now"?

brucke commented 4 years ago

thanks @tzachi-dar for the link!

i wont try it because i'm happy with my patched libre link app but for all the others the tutorial looks great.

You have tested it? I guess it works its a tutorial from MiaoMiao.

tzachi-dar commented 4 years ago

I did not test it personally, but many others did.

malloy139 commented 4 years ago

It is still not working for me on a Motorola G5S with Android 8. Neither does it work on a Oneplus 6 with Android 10.

JoernL commented 4 years ago

I have tested this some months ago. Doesn't work with MM1. Bubble works!

jonathanmmm commented 3 years ago

@JoernL or anybody else?

Does MM1 work now with Libre 2 + Xdrip+ and if yes, OOP1 or OOP2?

malloy139 commented 3 years ago

Does MM1 work now with Libre 2 + Xdrip+ and if yes, OOP1 or OOP2?

I used the "LibreOOPAlgorithm_L2.apk" as described on this site: https://miaomiaoreader.medium.com/how-to-make-libre-us-14-days-sensors-work-with-miaomiao2-on-xdrip-35b431a40940

Neither on my Oneplus 6 nor on my old Redmi Note 4 this was working. On a very old Samsung S3 Mini at least I got at the beginning some values but not anything after this.

Navid200 commented 3 years ago

I see several comments stating that the issue (opened more than 2 years ago) has been resolved. So, I am closing it. If this particular issue is not resolved, you can open it. But, please then clearly state what is not working and what you think can be done in xDrip to resolve it.

epoo commented 3 years ago

an

where can i find OOP?

i have tried bubble mini with xdrip and freestyle libre 2 but it does not works... it connect to the bubble but does not transmit the data. my phone has not NFC and is not compatible with librelink.

tzachi-dar commented 3 years ago

See details in: https://www.minimallooper.com/post/how-to-setup-freestyle-libre-2-and-oop2-to-use-a-native-bluetooth-connection-in-xdrip

On Wed, 28 Jul 2021 at 12:06, epoo @.***> wrote:

an

where can i find OOP?

i have tried bubble mini with xdrip and freestyle libre 2 but it does not works... it connect to the bubble but does not transmit the data. my phone has not NFC and is not compatible with librelink.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NightscoutFoundation/xDrip/issues/764#issuecomment-888144197, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4TBZADBBTHXSFASFM7YRDTZ7CA5ANCNFSM4GSZYRIA .

epoo commented 3 years ago

Voir les détails dans : https://www.minimallooper.com/post/how-to-setup-freestyle-libre-2-and-oop2-to-use-a-native-bluetooth-connection-in-xdrip … On Wed, 28 Jul 2021 at 12:06, epoo @.***> wrote: an where can i find OOP? i have tried bubble mini with xdrip and freestyle libre 2 but it does not works... it connect to the bubble but does not transmit the data. my phone has not NFC and is not compatible with librelink. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#764 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4TBZADBBTHXSFASFM7YRDTZ7CA5ANCNFSM4GSZYRIA .

Voir les détails dans : https://www.minimallooper.com/post/how-to-setup-freestyle-libre-2-and-oop2-to-use-a-native-bluetooth-connection-in-xdrip … Le mer. 28 juil. 2021 à 12:06, epoo @.***> a écrit : an where can I find OOP ? j'ai essayé bubble mini avec xdrip et freestyle libre 2 mais ça ne marche pas... il se connecte à la bulle mais ne transmet pas les données. mon téléphone n'a pas de NFC et n'est pas compatible avec librelink. — Vous recevez ceci parce que vous avez été mentionné. Répondez directement à cet e-mail, consultez-le sur GitHub < #764 (commentaire) > ou désabonnez-vous < https://github.com/notifications/unsubscribe-auth/AB4TBZADBBTHXSFASFM7YRDTZ7CA5ANCNFSM4GSZYRIA > .

Hello, i have read that if using OOP, i can't calibrate . is that right?