Currently PN7462 after reading ISO14443A card.
And when I take the card out of the tray, it takes about 3 seconds for the reader to receive the phExCcid_UsbCcid_CardRemoved signal.
Is there a way to customize this interval to 1 second or get the phExCcid_UsbCcid_CardRemoved signal as soon as the card is removed from the tray?
Hello @tuannguyen-aiot
This situation requires online debugging to identify where the time is taking longer so that it is easy to find a solution to the problem. Therefore, it is recommended that you online debug the code to determine where it takes a long time to run.
BR
kelly
At example PN7462AU_ex_phExCcid, the order of operations for reading ISO14443 A tag will be as follows:
At command position
status = phhalRf_PCD_Exchg(pDataParams->pTxBuffer,
&pDataParams->pRxBuffer[pDataParams->wRxBufStartPos],
pDataParams->wTxBufLen,
&gphhalRf_RxParams);
The program will wait here for 2 seconds to check the status of the card to see if it has been removed from the tray or not
Hello @tuannguyen-aiot
Yes, it can be commented, but actually, it has been commented out in our routine. You can check whether the macro definition NXPBUILD__PH_LOG is enabled in your code. Disable NXPBUILD__PH_LOG and then these APIs can be commented out.
BR
kelly