Skip to content

Fix get system info, add NDEF parsing#33

Merged
bofh69 merged 4 commits intomainfrom
fix-get-system-info
Jan 21, 2026
Merged

Fix get system info, add NDEF parsing#33
bofh69 merged 4 commits intomainfrom
fix-get-system-info

Conversation

@bofh69
Copy link
Owner

@bofh69 bofh69 commented Jan 20, 2026

No description provided.

@bofh69 bofh69 force-pushed the fix-get-system-info branch from c7c0554 to 288fa16 Compare January 20, 2026 21:00
@bofh69 bofh69 requested a review from Copilot January 20, 2026 21:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug in the ISO15693 system information parsing and adds NDEF (NFC Data Exchange Format) parsing capabilities for both ISO14443a and ISO15693 cards.

Changes:

  • Corrected the system information parsing in ISO15693 by adjusting byte offsets and improving error handling
  • Added NDEF parsing methods (decode_cc and get_ndef) to both ISO14443a and ISO15693 card classes
  • Updated example scripts to demonstrate NDEF reading functionality

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/pn5180_tagomatic/session.py Removed unnecessary parentheses in tuple unpacking
src/pn5180_tagomatic/iso15693.py Fixed system info parsing offsets and added NDEF parsing methods
src/pn5180_tagomatic/iso14443a.py Added NDEF parsing methods for ISO14443a cards
src/pn5180_tagomatic/cards.py Added abstract method signature for get_ndef
examples/iso_15693-read-memory.py Added NDEF extraction and display to example
examples/iso_14443-read-memory.py Added NDEF extraction and display to example

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bofh69 bofh69 force-pushed the fix-get-system-info branch from 288fa16 to f27132e Compare January 20, 2026 21:09
Also fix formatting for black-26.1.0
@bofh69 bofh69 force-pushed the fix-get-system-info branch from f27132e to 8bf84bb Compare January 20, 2026 21:10
@bofh69
Copy link
Owner Author

bofh69 commented Jan 20, 2026

@copilot Add tests for the decode_cc and get_ndef methods.

Copilot AI mentioned this pull request Jan 20, 2026
12 tasks
Copy link
Contributor

Copilot AI commented Jan 20, 2026

@bofh69 I've opened a new pull request, #34, to work on those changes. Once the pull request is ready, I'll request review from you.

* Initial plan

* Add comprehensive tests for decode_cc and get_ndef methods

Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>

* Refactor tests to use pytest fixtures

Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: bofh69 <1444315+bofh69@users.noreply.github.com>
@bofh69 bofh69 force-pushed the fix-get-system-info branch from 15867c5 to 7d25bc0 Compare January 21, 2026 07:03
@bofh69 bofh69 merged commit 3079c4f into main Jan 21, 2026
21 checks passed
@bofh69 bofh69 deleted the fix-get-system-info branch January 22, 2026 10:27
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

Successfully merging this pull request may close these issues.

3 participants