AnsweredAssumed Answered

[PN7462AU] NFC polling without RF reset

Question asked by Haje Lee on May 19, 2020
Latest reply on May 25, 2020 by Haje Lee

Good day,

 

I'm a engineer using PN7462AU.  I am developing an NFC communication program. When I remove the card (tag), I want to recognize it and stop all communication.

 

Below is the setup details,

1. Hardware: PN7462AU
2. SDK: PN7462AU-FW_v05.21.00
3. IDE: MCUXpresso IDE v11.0.0

 

Now I develop my program based on NfcrdlibEx7_EMVCo_Polling. 

See NfcrdlibEx7_EMVCo_Polling.c 239 Line.

do
{
    if((status & PH_ERR_MASK) != PHAC_DISCLOOP_NO_TECH_DETECTED)
    {
        /* Perform RF Reset */
        status = EmvcoRfReset();
        CHECK_STATUS(status);
    }

 

    /* Set discovery loop poll state */
    status = phacDiscLoop_SetConfig(pDataParams, PHAC_DISCLOOP_CONFIG_NEXT_POLL_STATE, PHAC_DISCLOOP_POLL_STATE_DETECTION);
    CHECK_STATUS(status);

 

    /* Start Polling, Function will return once card is activated or any other error has occurred */
    status = phacDiscLoop_Run(pDataParams, PHAC_DISCLOOP_ENTRY_POINT_POLL);

} while((status & PH_ERR_MASK) != PHAC_DISCLOOP_DEVICE_ACTIVATED); /* Exit on Card detection */

 

If RF Reset is not done in the above code, the next phacDiscLoop_Run() API does not always recognize the NFC Tag.

Question 1) Can phacDiscLoop_Run() API recognize NFC Tag without RF reset?

 

Question 2) Is there any other API that determines whether NFC Tag is in contact?

 

 

If anyone knows the answer to your question, please reply.

If you have any question, please feel free to contact me.

 

Thanks.

Outcomes