HCE example8 is working on Android, but not on iPhone

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

HCE example8 is working on Android, but not on iPhone

856 Views
marcinbaliniak
Contributor II

Hi,

I'm using PN5180 for a long time, but mostly as a reader. Now I want to use HCE mode also. First I want to start to use HCE mode in any working example. So I've attached the PN5180 development kit to the external MCU used in our application, run the example8 and everything seems to work but only on my Android phone Xiaomi Mi Mix2 (some extra logs added) - three times reading process:

I (00:00:00.096) hce: Card Emulation Application...
I (00:00:00.096) hce: Reader Library thread started...
I (00:00:00.096) hce: Application thread started...
First try - success
I (00:00:08.184) hce: ACTIVATED_BY_PEER...
W (00:00:08.184) hce: phpalI14443p4mC_Activate status: 0x0F06
I (00:00:08.203) hce: ACTIVATED_BY_PEER...
I (00:00:08.207) hce: Trigger AppProcessCmd in Application thread to start
I (00:00:09.147) hce: AppProcessCmd in Application thread exited
Second try - success
I (00:00:12.296) hce: ACTIVATED_BY_PEER...
W (00:00:12.296) hce: phpalI14443p4mC_Activate status: 0x0F06
I (00:00:12.315) hce: ACTIVATED_BY_PEER...
I (00:00:12.319) hce: Trigger AppProcessCmd in Application thread to start
I (00:00:13.295) hce: AppProcessCmd in Application thread exited
Third try - success
I (00:00:16.632) hce: ACTIVATED_BY_PEER...
W (00:00:16.632) hce: phpalI14443p4mC_Activate status: 0x0F06
I (00:00:16.651) hce: ACTIVATED_BY_PEER...
I (00:00:16.655) hce: Trigger AppProcessCmd in Application thread to start
I (00:00:17.591) hce: AppProcessCmd in Application thread exited

 

On the iPhone 8 reading and writing finished with success but maybe one or two per 10 tries. Here are logs:

I (00:00:00.096) hce: Card Emulation Application...
I (00:00:00.096) hce: Reader Library thread started...
I (00:00:00.096) hce: Application thread started...

First try without success , Connection error on the phone 
I (00:00:02.840) hce: ACTIVATED_BY_PEER...
I (00:00:02.843) hce: Trigger AppProcessCmd in Application thread to start
I (00:00:02.951) hce: AppProcessCmd in Application thread exited


Second try with success
I (00:00:09.043) hce: ACTIVATED_BY_PEER...
I (00:00:09.047) hce: Trigger AppProcessCmd in Application thread to start
I (00:00:09.151) hce: AppProcessCmd in Application thread exited
I (00:00:09.159) hce: ACTIVATED_BY_PEER...
I (00:00:09.163) hce: Trigger AppProcessCmd in Application thread to start
I (00:00:09.263) hce: AppProcessCmd in Application thread exited

Third try with success also but takes few internal tries
I (00:00:22.551) hce: ACTIVATED_BY_PEER...
W (00:00:22.554) hce: phpalI14443p4mC_Activate status: 0x0210
I (00:00:22.588) hce: ACTIVATED_BY_PEER...
W (00:00:22.588) hce: phpalI14443p4mC_Activate status: 0x0F06
I (00:00:24.191) hce: ACTIVATED_BY_PEER...
I (00:00:24.195) hce: Trigger AppProcessCmd in Application thread to start
I (00:00:24.295) hce: AppProcessCmd in Application thread exited
I (00:00:24.303) hce: ACTIVATED_BY_PEER...
I (00:00:24.307) hce: Trigger AppProcessCmd in Application thread to start
I (00:00:24.407) hce: AppProcessCmd in Application thread exited

On both phones I'm using the same application NFC tools, but I tried other apps and works the same, poor performance on iPhone and works fine on android phone.

Do you have any ideas on how to make it work stable also on the iPhone? Any ideas for timings etc.?

BR,

Marcin.

0 Kudos
Reply
1 Reply

841 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @marcinbaliniak ,

 

Actually there is no such kind of issue on my side , just place iPhone close to the antenna and you will find the card is detected. but I didn't see so much logs as shown above, did you enable some compiling option additionally ? That would consumes more time so that it might cause some timing issue according to the spec. Please kindly refer to the following for details.

Taginfo result 1.png

 

HCE debug info.png

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply