Topic: nfc-emulate-tag
I tried running this built-in example as is in the latest stable release and it doesn't work.
I'm using a PN533.
When I run it, I can get the other initiator to see the 'tag' (the PN533) and they go through the ATQA and the everything else just fine. The initiator then sends a MifareAuthA command, but when replying I get a 'Invalid DEP State' error and the command never gets sent back.
Upon further debugging I've found that the library incorrectly tries to do TX/RX using TGSetData and TGGetData instead of TGResponseToInitiator and TGGetInitiatorCommand (these are commands to PN533). TGSetData and TGGetData are only allowed in DEP mode -- which this is not.
I made the change and at least the command gets sent correctly however I get a response of 50 00 from the other Initiator -- which I can't find anywhere in any NFC/ISO14443 or any other spec.
Has anyone ever successfully used the nfc-emulate-tag?! It seems the code that is checked in is buggy -- you at least have to change the TX/RX commands.
Thanks.