Hello again!!!!!
I have been trying to play with the nfc-emulate tool but it does not work properly for me: It start working and configurate the reader but it is not possible to configure the ID I want.
I think the problem is in the function nfc_target_init of the nfc.c file because it returns with false in this line
if (!pnd->pdc->transceive(pnd->nds,abtCmd,39,abtRx,&szRxLen)) return false;
so the nfc-emulate code is not executed completely. Next is the results I got on the screen, is there any way to check what is happening ??? Thanks.
debian5:~/Desktop/libnfc-read-only_rev_318/src/examples$ ./nfc-emulate
DBG nfc.c:147: Autodetecting available devices using ACR122 driver.
DBG acr122.c:162: PCSC reports following device(s):
DBG acr122.c:167: - ACS ACR122U 00 00 (pos=0)
DBG nfc.c:151: Auto-connecting to ACS ACR122U 00 00 using ACR122 driver
DBG acr122.c:208: Connecting to ACS ACR122U 00 00
DBG nfc.c:176: [ACS ACR122U 00 00 / ACR122U206] has been claimed.
TX: ff 00 00 00 02 d4 02
RX: d5 03 32 01 04 07 90 00
TX: ff 00 00 00 04 d4 06 63 3d
RX: d5 07 00 90 00
TX: ff 00 00 00 05 d4 08 63 3d 00
RX: d5 09 90 00
TX: ff 00 00 00 04 d4 06 63 02
RX: d5 07 80 90 00
TX: ff 00 00 00 05 d4 08 63 02 80
RX: d5 09 90 00
TX: ff 00 00 00 04 d4 06 63 03
RX: d5 07 80 90 00
TX: ff 00 00 00 05 d4 08 63 03 80
RX: d5 09 90 00
TX: ff 00 00 00 04 d4 06 63 0d
RX: d5 07 20 90 00
TX: ff 00 00 00 05 d4 08 63 0d 20
RX: d5 09 90 00
TX: ff 00 00 00 04 d4 06 63 38
RX: d5 07 01 90 00
TX: ff 00 00 00 05 d4 08 63 38 01
RX: d5 09 90 00
[+] Connected to NFC reader: ACS ACR122U 00 00 / ACR122U206 - PN532 v1.4 (0x07)
[+] Try to break out the auto-emulation, this requires a second reader!
[+] To do this, please send any command after the anti-collision
[+] For example, send a RATS command or use the "nfc-anticol" tool
TX: ff 00 00 00 04 d4 06 63 05
RX: d5 07 47 90 00
TX: ff 00 00 00 05 d4 08 63 05 47
RX: d5 09 90 00
TX: ff 00 00 00 27 d4 8c 00 04 00 00 b0 0b 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Error: Could not come out of auto-emulation, no command was received
debian5:~/Desktop/libnfc-read-only_rev_318/src/examples$