Unable to write to PN7150 in Emulation mode.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to write to PN7150 in Emulation mode.

2,137 Views
mlupur
Contributor I

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?

0 Kudos
Reply
6 Replies

2,108 Views
mlupur
Contributor I

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?

0 Kudos
Reply

2,105 Views
danielchen
NXP TechSupport
NXP TechSupport

In the configuration file, you need to change NXP_T4T_NFCEE_ENABLE to 0x00.  This is in libnfc-nxp.conf

please use the attached main.c

0 Kudos
Reply

2,102 Views
mlupur
Contributor I

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.

 

0 Kudos
Reply

2,089 Views
danielchen
NXP TechSupport
NXP TechSupport

If you are using PN7150, please ignore the "NXP_T4T_NFCEE_ENABLE"

0 Kudos
Reply

2,064 Views
mlupur
Contributor I

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.

0 Kudos
Reply

2,111 Views
danielchen
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply