Issue with Communication with HCE Using PN7150

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Issue with Communication with HCE Using PN7150

597件の閲覧回数
ilija01
Contributor I

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. 

#define SELECT_APDU                  {0x00, 0x00, 0xD, 0x00, 0xA4, 0x04, 0x00, 0x07, 0xF0, 0x00, 0x00, 0x00, 0x0A, 0x01, 0x01, 0x00}

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.

タグ(1)
0 件の賞賛
返信
3 返答(返信)

579件の閲覧回数
ilija01
Contributor I

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. 

0 件の賞賛
返信

431件の閲覧回数
KaiLi
NXP TechSupport
NXP TechSupport

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.

0 件の賞賛
返信

584件の閲覧回数
KaiLi
NXP TechSupport
NXP TechSupport

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.

0 件の賞賛
返信