I am working over emulating ndef tags with acr122U device(PN532 chip). My start point was the question at How to card emulate with ACR122U-A9. I can manage device (I can change led or buzzer states) with direct commands. But could not get a response from device when I pass tgInitAsTarget command. There is no an error, I am getting empty response when I pass tgInitAsTarget.
I am working over an windows 10 machine with Java, the acr122u firmware is ACR122U215 version.
Here is my commands and responses:
Read registers
<< FF 00 00 00 08 D4 06 63 05 63 0D 63 38
>> D5 07 07 00 05 90 00
Write registers
<< FF 00 00 00 11 D4 08 63 02 80 63 03 80 63 05 07 63 0D 00 63 38 05
>> D5 09 90 00
Set parameters
<< FF 00 00 00 03 D4 12 30
>> D5 13 90 00
tgInitAsTargetCommand
<< FF 00 00 00 27 D4 8C 05 04 00 12 34 56 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
>>
There should be a response, but I could not get response, and I wonder what is wrong?
tgInitAsTargetCommand
<< FF 00 00 00 27 D4 8C 05 04 00 12 34 56 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
>> //??Why could not I get response?
tgInitAsTargetCommand
is a blocking command and will return empty response until a reader apporach to the emulated tag. – BumgardnertgInitAsTargetCommand
is a blocking command, but I do not know how to get callback from pn532 when a reader connected. It necessary getting that callback before sendingtgGetData
andtgSetData
commands. If I sendtgGetData
andtgSetData
aftertgInitAsTargetCommand
,I am getting D5 87 25 90 00 . Which 25 is not the expected response code. – DepalmaTG_GET_DATA
too. If this works for you, I will write up the answer. – BumgardnertgInitAsTarget
command until I get a non-empty response. Then, I can supply tgGet/SetData APDU. – BumgardnertgInitAsTarget
will return nothing until a reader is approached to the emulated tag, then thetgInitAsTarget
APDU will return a valid, non-empty response. – Bumgardner