How to PN7150 Re-Discovery without removing NFC tag

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

How to PN7150 Re-Discovery without removing NFC tag

829 Views
griffith_chen
Contributor I

Hi,

We have example code from PN7150_SW4325/NXPNCI-K64F_Example (Work perfectly)

Currently, we have one requirement, the NFC tag cannot remove from PN7150's field, but we want to let PN7150 can find this NFC tag again (we want to PN7150 could find NFC tag every 5 seconds, even the NFC tag has found before) and we have no idea how to do this even we try to following procedure, the NFC tag cannot be found again, any suggestion to guide us? Thank you so much.

NxpNci_StopDiscovery();
NxpNci_StartDiscovery(DiscoveryTechnologies,sizeof(DiscoveryTechnologies));

 

0 Kudos
1 Reply

810 Views
nxf58474
NXP Employee
NXP Employee

Hello,

 

Hope you are doing well. The NXP-NCI example aims to detect the tag only once and wait for the tag to be removed. And then the Discovery Loop begins again.

In NXPNCI-K64F_example>source>nfctask.c>task_nfc_reader, there is this function: NxpNci_ProcessReaderMode(RfIntf, PRESENCE_CHECK);

If you comment this function, and add a sleep of 5 seconds, it would meet your requirement:

MCUXpresso.png

You will be discovering the tag every 5 seconds, with the tag in the same physical location.

Teraterm.png

Hope this helps.

 

Best Regards,

Ricardo

0 Kudos