Regarding writing and authentication of mfrc522 rfid

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Regarding writing and authentication of mfrc522 rfid

2,109 Views
yogitajadhav
Contributor I

hi,

I m using mfrc522 rfid. I can read the card UID number. But I want to write into RFID tag I am unable to write and authenticate RFID card. In authentication process STATUS2Reg of RFID not set to 0x08 because of that authentication of card fail and If I go to read or write block of RFID it also fails. Can I get solution to this problem?

Thanks In advance.

0 Kudos
3 Replies

1,321 Views
jonathan1
Contributor I

Please share the rc522 register read / write sequence for card reading. Greetings and thanks

0 Kudos

1,543 Views
IvanRuiz
NXP Employee
NXP Employee

Hello,

Could you please provide more information (e.g., Tag type, authentication procedure) ?

Regards,

Ivan.

0 Kudos

1,543 Views
yogitajadhav
Contributor I

Hi,

Thanks for the reply.

Tag type is 1K

Authentication Procedure I am using :-

• Authentication command code (60h)

• Block address

• Sector key byte 0 (0xFF)

• Sector key byte 1 (0xFF)

• Sector key byte 2 (0xFF)

• Sector key byte 3 (0xFF)

• Sector key byte 4 (0xFF)

• Sector key byte 5 (0xFF)

• Card serial number byte 0

• Card serial number byte 1

• Card serial number byte 2

• Card serial number byte 3

In total 12 bytes are written to the FIFO for authentication.

Please find the below link of library file that I am using 

https://docs.google.com/document/d/14vAZp5xIeqQWhcBgMoZ81V2IJg6YkOURwGDnDm0YeIo/edit

Waiting for your reply.

Thanks

0 Kudos