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

Wrong maxSensorDays shown for Libre 3 Plus via LibreLinkUp follower mode #567

Open
Rig22 opened this issue Aug 29, 2024 · 6 comments
Open
Labels
bug Something isn't working

Comments

@Rig22
Copy link

Rig22 commented Aug 29, 2024

XDrip4ios shows a total runtime of 14 days. But the actual runtime for the L3 Plus is 15 days.

@paulplant paulplant changed the title L3Plus connection for Paul Wrong maxSensorDays shown for Libre 3 Plus via LibreLinkUp follower mode Aug 29, 2024
@paulplant paulplant added the bug Something isn't working label Aug 29, 2024
@paulplant
Copy link
Collaborator

Issue Report requested to see if we have any way of identifying a L3Plus (compared to a standard L3) in the data response from LibreLinkUp. If so, we should show 15.5 days max lifetime instead of 14.5 days.

@Rig22
Copy link
Author

Rig22 commented Sep 14, 2024

If so, we should show 15.5 days max lifetime instead of 14.5 days.

Differently than the Libre 2, whose wearDuration is established during the factory calibration and readable at FRAM[326...327], the Libre 3 that I tested until now always had a fixed wearDuration of 20160 minutes, therefore 14.0 days precisely, not 14.5 days.

A Libre 3 wearDuration can be extracted from the bytes [6...7] of the extended 24-byte patchInfo returned by the usual NFC custom command A1 (they are prepending dummy A5 bytes and appending a final CRC16).

According the logs Libre 3 Plus's wearDuration is of 21600 minutes, therefore 15.0 days. Its firmware version (patchInfo[8...11]) looks the same as for my current Libres 3, 1.4.2.30, while the only difference is a version bump from 0 to 1 of the generation number (patchInfo[4...5]).

@paulplant
Copy link
Collaborator

@Rig22 , I think you're replying to comments that have already been deleted.

But yes, the idea would be to show 15.5 days maxSensorDays instead of 14.5 but from the Issue Report you sent, I can see that there is nothing that indicates that it's a "Libre 3 Plus" instead of the previous Libre 3 so there's currently no way to detect that we should show a different max lifetime.

I need to think of a different way to do this, but it will probably involve the user having to tell the app (in LibreLinkUp follower mode) that it's a "plus" sensor and then adjust accordingly.

@Rig22
Copy link
Author

Rig22 commented Sep 16, 2024

Hello Paul. 🙂 Yes, you know who the original comment was from. Unfortunately it was deleted. I thought it had such important information for you that I posted it again. Let me know, if there is anything I can do.

@Rig22
Copy link
Author

Rig22 commented Sep 18, 2024

Hello Paul. 🙂 I personally think the solution you are talking about is completely sufficient. When connecting once every 15 days, flipping a small switch to tell xdrip that it is a Libre 3 plus would be no effort.

@Rig22
Copy link
Author

Rig22 commented Sep 19, 2024

What I had completely forgotten was that after 14 days and 2 hours, not only was the Bluetooth connection terminated, but there were no more values ​​coming in from LibreLinkUp either, so I had to install a new sensor. As expected, the LibreLinkUp app continued to provide the values ​​even after 14 days and 2 hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants