Repository navigation
Accept NTAG215 tags whose CC declares 504 bytes (0x3F) - #44
Merged
suchmememanyskill merged 1 commit intoNov 30, 2026
Merged
Conversation
Since a13bc9e the Ultralight reader rejects any CC size byte that is not in FM175XX_ULTRALIGHT_PAGE_COUNTS_BY_CC_SIZE. NTAG215 tags with CC E1 10 3F 00 declare the full 504-byte user area (pages 04h-81h) and are valid, but are now rejected. The CC is OTP, so these tags cannot be reset to NXP's delivery value 0x3E. Map 0x3F to the NTAG215's 135 physical pages and add a synthetic case plus a real tag dump as an OpenSpool fixture.
suchmememanyskill
approved these changes
Nov 30, 2026
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.
Since a13bc9e the Ultralight reader looks up the physical page count from CC byte 2 and rejects anything not in
FM175XX_ULTRALIGHT_PAGE_COUNTS_BY_CC_SIZE. NTAG215 tags with CCE1 10 3F 00are now rejected:0x3F is a valid NTAG215 CC:
E1 10 3E 00(496 bytes), per datasheet Rev. 3.2, Tables 4 and 6.This maps
0x3Fto 135 pages:Tag
Genuine NXP NTAG215 used on a Snapmaker U1 with paxx12's extended firmware. NFC Tools reports:
E1 10 3F 00Its 540-byte dump is added as
test/tags/OpenSpool/Geeetech PLA FFC5AB CC 3F.bin. It holds an OpenSpool record written with NFC Tools.Testing
Without the change in
constants.py, two tests fail: the new syntheticntag215-cc-504case and the real-dump fixture.NTAG216's equivalent (
0x6F, 888 bytes) isn't in the table either. I haven't seen one in the wild, so I left it out. Happy to add it if you want.