ondryaso / pi-rc522

Raspberry Pi Python library for SPI RFID RC522 module
MIT License
411 stars 150 forks source link

how to write the UID? #53

Open mrdimi opened 5 years ago

mrdimi commented 5 years ago

how to rewrite the UID of the card?

MirMiz commented 5 years ago

As far as I understood - you can't. The UID is located in the Manufacturer block (Sector 0, Block 0), which is "programmed and write protected in the production test" -> See MIFARE datasheet, Chap. 8.6.1 as linked in the README.md/Repo title page. If you want to set your own RFID-Token-ID, you could write it (your own assigend Token-ID) to any block you like. For example Sector 0, Block 1. Your application then has to read it from there.

Razikus commented 4 years ago

@MirMiz sometimes manufacturer allows to write to 0,0 in order to allow duplicating cards