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

Add support for reading/writing to Mifare Classic tags #4

Open
techniq opened this issue Jan 10, 2015 · 2 comments
Open

Add support for reading/writing to Mifare Classic tags #4

techniq opened this issue Jan 10, 2015 · 2 comments

Comments

@techniq
Copy link
Owner

techniq commented Jan 10, 2015

Library currently supports NTAG* tags, and hopefully other 4-byte page tags (Mifare Ultralight), but it currently does not support Mifare Classic tags, which have 16-byte blocks.

@yangpu
Copy link

yangpu commented Dec 24, 2015

Do you have any plan to work on Mifare Classic tags?

I have some NFC tags(ISO14443A), and door access card and bus card (I don't know the protocol and type), all tags uid can be detected. However, I'd like to write some data into NFC tags, but nothing is response.

Looks like this repository(https://github.com/tessel/rfid-pn532) can surrport Mifare Classic block read/write. However, its hardware is more specified to Tessel.

@techniq
Copy link
Owner Author

techniq commented Dec 24, 2015

I have plans to support Mifare Classic tags, but not in the immediate future. I think I ran into issues getting the authentication working. I started support for this, but couldn't get it to work at the time. I actually used the tessel library (along with a few others) when I was trying to understand the data flow. I even had an issue open with them about merging our efforts a while back.

I believe most everything is in place except the auth side of things. There might also need to be some changes/configuration when reading as some cards/tags have different block/page sizes. I have a spreadsheet I used to document my findings you might find helpful - https://docs.google.com/spreadsheets/d/1IJNzGNl7qdgCePklrghU54n4hOx5E6y20rEpZw0gJhc/edit#gid=1815263715

PRs are always welcome. Feel free to compare my authenticateBlock, readBlock, readNdefData, writeBlock, and writeNdefData and compare to (tessel's)[https://github.com/tessel/rfid-pn532/blob/master/index.js#L530-L643]

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

No branches or pull requests

2 participants