mxgxw / MFRC522-python

A small class to interface with the NFC reader Module MFRC522
GNU Lesser General Public License v3.0
521 stars 419 forks source link

Writing and tag size #1

Closed Cotix closed 10 years ago

Cotix commented 10 years ago

Hey,

I just downloaded this code, and I'm using it now! I just got this MFRC522 card, and I got no clue how to operate it, so could you explain or link me to some kind of documentation of how I could implement writing? And what about the tag size? Not all tags have 5 bytes, or do they?

Thanks man, you're great!

mxgxw commented 10 years ago

Hi Cotix!

I just migrated the code from the original implementation in C++. Let me see if I can do something about that.

You can find a small tutorial in spanish about how to use it with a Raspberry Pi.

http://fuenteabierta.teubi.co/2013/07/utilizando-el-lector-nfc-rc522-en-la.html

Regards, mxgxw

Cotix commented 10 years ago

Hey mxgxw,

Yea I saw that, and I hooked it up. I also noticed you took over some other implementation in C++. I wrote some more code, I also aded the calulateCRC selectTag and readblock functions. Not sure if i did it properly though, cause when I read a block it just gives back 0x04. I have no clue how NFC data structures work.

You want me to upload the code?

thanks

Cotix commented 10 years ago

I finished your code. It can read and write the chips now too. I'll do a pullrequest tomorrow.