Add flipnCGM 1.0 — Abbott FreeStyle Libre CGM serial reader (NFC)#1061
Open
darendarrow wants to merge 3 commits into
Open
Add flipnCGM 1.0 — Abbott FreeStyle Libre CGM serial reader (NFC)#1061darendarrow wants to merge 3 commits into
darendarrow wants to merge 3 commits into
Conversation
xMasterX
requested changes
May 26, 2026
Collaborator
xMasterX
left a comment
There was a problem hiding this comment.
Hi, there's one issue with your code:
You need to use different path to save app related files
Change
/ext/flipncgm
To
/ext/apps_data/flipncgm
In all 3 defines where path is specified
Author
Updated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Application Submission
How the serial number is decoded
FreeStyle Libre sensors store their serial number inside the NFC tag's 8-byte UID.
flipnCGM reads that UID passively over ISO 15693 — no sensor activation required —
and decodes it to the 9-character serial printed on the sensor packaging.
UID layout
E07ABytes 0 and 1 are checked first to confirm the tag is a genuine Abbott Libre before
decoding is attempted.
Decode steps
Concatenate bytes 2–7 into a single 48-bit big-endian integer.
For example,
C2 1C C6 45 11 7A→0xC21CC645117A.Extract nine 5-bit groups, reading from the most significant bits downward.
(9 × 5 = 45 bits; the three most significant bits are always zero and are discarded.)
Each group is a value in the range 0–31.
Map each value through a 32-character alphabet:
The letters B, I, O, and S are omitted to avoid visual ambiguity on printed labels
(B≈8, I≈1, O≈0, S≈5).
The nine resulting characters are the serial number — e.g.
0R8FDDJ8J— identicalto what Abbott prints on the sensor box and applicator.
Extra Requirements
Author Checklist (Fill this out)
python3 tools/bundle.py --nolint applications/CATEGORY/APPID/manifest.yml bundle.zipAI usage disclosure (Fill this out):
Partially AI assisted (clarify below which code was AI assisted and briefly explain what it does).
Fully AI generated (explain what all the generated code does in moderate detail).
All code was generated by Claude with human guidance and testing of the application against known CGMs to validate serial numbers were decoded the same.
Reviewer Checklist (Don't fill this out!)