ST25R3911 Detects NFCV Tag Got ERR_RF_COLLISION Return Code
Hey,
I'm using ST25R3911 and ST RFAL Lib, and a 15693 tag on my customized board.
I was using an iPhone to detect the tag and it works. And I was using NFCA tag, the ST25R3911 and the Lib work good.
But as I move on to the NRFV tag, the board can detect the exist of the tag by rfalNfcPollTechDetetection. But once I'm trying to get the count of the tag, using rfalNfcPollCollResolution. The count is always 0. While I debug into the function and it's returning ERR_RF_COLLISION on rfalNfcvPollerInventory.
I have my code of using the RFAL below and can anybody help to see or give some advice to me. Thank you so much.
- Variables
#define EXAMPLE_NFC_DEVICES 1
static rfalNfcDevice *nfcDevice;
static rfalNfcDiscoverParam discParam =
{
.compMode = RFAL_COMPLIANCE_MODE_NFC,
.devLimit = EXAMPLE_NFC_DEVICES,
.nfcfBR = RFAL_BR_212,
.ap2pBR = RFAL_BR_424,
.nfcid3 = NULL,
.GB = NULL,
.GBLen = 0,
.notifyCb = NULL,
.totalDuration = 10U,
.wakeupEnabled = false,
.wakeupConfigDefault = true,
.techs2Find = (RFAL_NFC_POLL_TECH_A | RFAL_NFC_POLL_TECH_V)};- Initialize
rfalNfcInitialize();
rfalNfcDeactivate(false);
rfalNfcDiscover(&discParam);- Polling
{
rfalNfcWorker();
if (rfalNfcIsDevActivated(rfalNfcGetState()))
{
/*
* Retrieve NFC device
*/
rfalNfcGetActiveDevice(&nfcDevice);
rfalNfcDeactivate(false);
rfalNfcDiscover(&discParam);
}
}If using NFCA tag, it can make rfalNfcIsDevActivated return true.
If using NFCV tag, it can never call rfalNfcIsDevActivated true branch.
Thank you all!
