Emulate Mifare Card on PN512 using TgInitAsTarget command

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

Emulate Mifare Card on PN512 using TgInitAsTarget command

250 Views
avgurt9
Contributor I

Hello, everybody!

How can I emulate a Mifare Classic card or Mifare Ultralight card on a PN512 using the TgInitAsTarget command?

When I send to the PN512 command TgInitAsTarget in the form
D4 8C 00 08 00 12 34 56 40 01 FE A2 A3 A4 A5 A6 A7 C0 C1 C2 C3 C4 C5 C6 C7 FF FF AA 99 88 77 66 55 44 33 22 11 00 00

then on another PN512-based reader I get the ATR in the form
3B 8F 80 01 80 4F 0C A0 00 00 03 06 11 00 3B 00 00 00 00 42

and on an MFRC531-based reader, I get the ATR in the form
3B 8F 80 01 80 4F 0C A0 00 00 03 06 03 FF 40 00 00 00 00 D4

what doesn't match the Mifare card.

Is there a User Manual for NXP PN512 similar to UM0801-03 PN533 User Manual or UM0701-02 PN532 User Manual?

0 Kudos
Reply
3 Replies

230 Views
jimmychan
NXP TechSupport
NXP TechSupport

Unfortunately, there is no UM for PN512. There are only datasheet. PN512.fm

0 Kudos
Reply

222 Views
avgurt9
Contributor I

Thanks for your answer!

Unfortunately, there is no description of commands like TgInitAsTarget in this document.

When I send to the PN512 command TgInitAsTarget in the form
D4 8C 00 44 00 12 34 56 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 AA 99 88 77 66 55 44 33 22 11 00 00

then, on the PN512-based reader and on the MFRC531-based reader, I get the correct ATR for Mifare Ultralight card in the form
3B 8F 80 01 80 4F 0C A0 00 00 03 06 03 00 03 00 00 00 00 68
but the TgInitAsTarget command does not return anything and the client reader cannot receive any data from the emulated card.

0 Kudos
Reply

159 Views
jimmychan
NXP TechSupport
NXP TechSupport

Yes, it is a very old product. The information is not easy to find out. I cannot find out the example for your reference.

I would suggest you to use PN7160 for the new project development.

PN7160 | NFC Controller with Integrated Firmware and NCI Interface | NXP Semiconductors

0 Kudos
Reply