ACR122 - Card Emulation

后端 未结 4 1994
傲寒
傲寒 2021-02-14 01:50

How can I get the NFC contactless reader ACR122U to behave as a tag (card emulation mode)? The prospectus claims that the device can do card emulation, but the SDK does not seem

4条回答
  •  面向向阳花
    2021-02-14 02:10

    For "Card Emulation" or in other words, "Configure as target and wait for initiators", please refer to here: http://code.google.com/p/nfcip-java/source/browse/trunk/nfcip-java/doc/ACR122_PN53x.txt

    ** Command to PN532 **
    0xd4 0x8c TgInitAsTarget instruction code
    0x00 Acceptable modes
    (0x00 = allow all, 0x01 = only allow to be
    initialized as passive, 0x02 = allow DEP only)
    
    _6 bytes (_MIFARE_)_:
    0x08 0x00 SENS_RES
    0x12 0x34 0x56 NFCID1
    0x40 SEL_RES
    
    _18 bytes (_Felica_)_:
    0x01 0xfe 0xa2 0xa3 0xa4 0xa5 0xa6 0xa7
    NFCID2
    0xc0 0xc1 0xc2 0xc3 0xc4 0xc5 0xc6 0xc7
    ?
    0xff 0xff System parameters?
    0xaa 0x99 0x88 0x77 0x66 0x55 0x44 0x33 0x22 0x11
    NFCID3
    0x00 ?
    0x00 ?
    

    This is the response when an initiator activated this target:

    ** Response from PN532 **
    0xd5 0x8d TgInitAsTarget response code
    0x04 Mode
    (0x04 = DEP, 106kbps)
    

    Let me know if it works!

提交回复
热议问题