Hi everyone,
I'm currently working on a project where I need to communicate with an HCE (Host Card Emulation) application https://github.com/AndroidCrypto/Android_HCE_Beginner_App (I changed AID to see if that is the problem) using the PN7150 NFC controller. I'm using the ISO-DEP protocol and ISO-DEP RF interface for this purpose. However, I'm encountering an issue when trying to send a SELECT APDU command(following ISO7816-4). The HCE application does not respond as expected (it should respond with a success code, SW1=0x90 and SW2=0x00).
For context, my firmware works perfectly with MIFARE 1K cards, and I've updated it to support HCE communication(NFC A Passive Poll Mode is for both, difference is between protocol and RF Interface). Despite these updates, something seems to be going wrong, and I can't pinpoint the issue. SELECT APDU has NCI Header(Data Message-000b, PBF-0b, Conn ID=000b, RFU=0x00, Payload Length = 0xD.
Has anyone experienced a similar problem or have any suggestions on what might be causing this? Any help would be greatly appreciated!
Thanks in advance.
But pn7150 needs to be reader? Because I want to send select APDU, which will activate HCE like a tag, then I want to send GET APDU, to get some information stored in file.
Hello @ilija01
You need to do some configuration to make the PN7150 work in CE mode, and then you can use your phone or other Reader to read some information about the PN7150 in CE mode, such as random UID. So first you need to configure it as CE according to AN13861 description.
Hello @ilija01
Please refer AN13861 (https://www.nxp.com.cn/docs/en/application-note/AN13861.pdf) to set CE configuration. For CE, PN7150 is the same as PN7160, more or less.