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

Fix GET_VERSION command for NTAG devices #124

Merged
merged 2 commits into from
Nov 25, 2020

Conversation

m3rcuriel
Copy link
Contributor

The spec claims that this is a 1-byte command, and testing on a PN532 via SPI validated that the one byte command is correct.

Copy link
Contributor

@smortex smortex left a comment

Choose a reason for hiding this comment

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

Cc @SloCompTech who contributed this 3 years ago.

This looks good to me, and I am not in position of testing anything. Can you please review this?

@shannon
Copy link

shannon commented Jan 20, 2020

I just wanted to mention that I was having some trouble with libfreefare not classifying my tags as NTAG21x. NFCTools for android was working correctly so I knew it wasn't the tags themselves.

I tracked it down to the ntag21x_is_auth_supported check and the 60:00 command does seem to be the issue as that doesn't seem to be a valid command. This change fixes the issue for me.

*edit: just wanted to add that I am using PN532 via I2C.

@DrSchottky
Copy link

I can confirm I have the same issue, NTAG212 is detected as Mifare Ultralight by ACR122U.
Fixed by reverting commit 5459806

@m3rcuriel
Copy link
Contributor Author

@smortex I can possibly find a scope to hook up and show you this change fixing the problem, or just link you the line in the spec.

Looks like @SloCompTech isn't on Github a lot?

Also @DrSchottky I don't think that's a good idea to revert--that just makes the build not fail on the bounds checking, whereas the problem was introduced in b2eca83 which also provided the entire NTAG 21x support.

@smortex smortex merged commit e95406c into nfc-tools:master Nov 25, 2020
@smortex
Copy link
Contributor

smortex commented Nov 25, 2020

@m3rcuriel thanks for the heads up

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.

None yet

4 participants