NFC Reader Library how to know if phone read is success or fail

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

NFC Reader Library how to know if phone read is success or fail

1,427 Views
emmanuel_sanche
Contributor III

Hi,

I'm using the NFC Reader Library to run the PN5180 in card emulation mode (NfcrdlibEx8_HCE_T4T.c). I can successfully read the NDEF content with a phone. However, I noticed that if I move the phone too quickly or I move it out of range before the read finishes, I get a message "No NDEF Detected" on the NXP TagWriter app.

Is it possible for the PN5180 to know if the phone finished reading the tag successfully?

I set a breakpoint in T4TCardEmulation() immediately after status = phceT4T_Activate(pceT4T); and a breakpoint in TApplication() immediately after status = phceT4T_AppProcessCmd(...);. The breakpoints hit when the phone moves out of range after reading the tag, but the statuses do not tell me if the phone read was a success or fail.

Is there a way to distinguish?

Thank you!

Labels (1)
0 Kudos
Reply
1 Reply

1,288 Views
IvanRuiz
NXP Employee
NXP Employee

Hello,

It is rather in the smartphones side programming to verify that the data was properly read. You may also implement an acknowledge sent from the reader to tag if e.g. data matches a kind of CRC implemented on your tags side.

BR,

Ivan.

0 Kudos
Reply