Cleanly detect and recover from two types of fault in PN7150

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Cleanly detect and recover from two types of fault in PN7150

2,103 次查看
JWizard
Contributor I

Hello,

We have deployed the PN7150 and the PN7150X (separate units) paired with a custom antenna solution and custom C++ library for reading UIDs from MiFare and SLIX tags and through secure NFC with Apple and Android phones. 

Somewhere around every 5,000 scans we will have a unit fail. The failure presents in one of two ways: 

  1. The field is absent.
  2. The field is a "solid wall" as if a tag was detected and the chip is attempting to activate the tag.

A couple observations made concerning what I think could be going on:

  • Users may approach with wearables containing NFC technology which may not be handled properly in my code. Attempts at a "catch-all" don't seem to help if this is the case.
  • Noise in the system might be triggering the PN7150 to enter a new state
  • Tags may enter the the very edge of the detectable field and then exit leaving the PN7150 trying to activate indefinitely

One thing that works is to consistently reset the chip at a fixed interval. But this is not desirable as it negatively impacts user experience due to >1sec initialization routine. 
In these failed states the StopDiscovery command does not work, so I cannot use the quick turnaround of Stop then Start at a fixed interval.

I attempted to detect the failed state to only reset the chip when necessary but the only method I could think to do this was to reissue the StartDiscovery command. Unfortunately the PN7150 returns 41-03-01-a0 (Discovery Already Started) regardless of whether the system is stable and ready, no field is present, or the "solid wall" field is present.

Currently I think the best thing I could do is try and detect what it is actually happening to recover more cleanly if not diagnose the root cause. 

What is a possible explanation for why it would return 41-03-01-a0 when the field is not present?

Is there a method for querying the current state of the PN7150's FSM? 

 

标记 (1)
0 项奖励
回复
3 回复数

2,088 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @JWizard ,

 

Have you ever tried with our dev kit for PN7150 in the test? Is the problem still there? It is recommended to test your custom application based on the EVB at first , which may help to ignore any kind of hardware design issue from your custom board.

 

Please kindly refer to https://www.nxp.com/products/rfid-nfc/nfc-hf/nfc-readers/new-development-kits-for-pn7150-plugn-play-... for more details.

 

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 项奖励
回复

2,082 次查看
JWizard
Contributor I

Thank you for the response, Kan_Li.

I would like to rephrase the questions more simply:

Can I query the PN7150 for current state of the FSM?

Can I query the PN7150 for the presence of the RF field (polling loop)?

0 项奖励
回复

2,073 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @JWizard ,

 

What is FSM? Do you mean the NCI RF State Machine? Actually there is not a dedicated command for that purpose , as well as for RF field presence, but from the NTF messages, the DH may know which interface is mapping, and which mode is in. Please kindly refer to chapter 5 in UM10936 for more details.

 

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 项奖励
回复