Hello,
I am using PN7150 in emulation mode. I can successfully read data from it, but when I try to write to the PN7150, I am unable to do so.
I receive following APDU commands:
00 A4 04 00 07 D2 76 00 00 85 01 01 00
00 A4 00 0C 02 E1 03
00 B0 00 00 0F
00 A4 00 0C 02 E1 04
00 B0 00 00 02
And after that communication is broken.
I am using this library: https://github.com/NXPNFCLinux/linux_libnfc-nci
And my code is based on examples from: https://github.com/NXPNFCLinux/linux_libnfc-nci_examples
(I tried card-emulation_example and ndef-emulation_example and I get the same result)
Can somebody explain to me what I am doing wrong and how to get the data to the PN7150?
But that is the demo I am referring to in my first message. The one which gives me the result I described.
Are there some additional flags that need to be set in order to be able to write to the NFC or is there something else I could try?
Hi @danielchen,
Thank you for your answer, that configuration flag is only available on PN7160 branch, I am using the main branch of the library, because I have PN7150. And on that branch, this flag does not exist.
If you are using PN7150, please ignore the "NXP_T4T_NFCEE_ENABLE"
Yes, I am ignoring that flag, but that is not the point.
The point is that I can not write to NFC when in emulate mode using the demos on the official site. So I am asking you how to make it work, you proposed to use the NXP_T4T_NFCEE_ENABLE, and I said that it is not available for the PN7150, hence I am ignoring it.
But is there something else that might make this work? Please read my initial problem once more if needed.
Hi @mlupur
For how to writ to / read from the emulated card, please refer to below demo.
https://github.com/NXPNFCLinux/linux_libnfc-nci_examples/tree/master/ndef-emulation_example
Regards
Daniel