2023-02-22 10:33 PM
Hello we have integrated ST NFC RFAL stack with RL78 IC and currently we are able to detect NFC card within 1-2seconds. Is there a way to reduce this time less than 1 second to detect NFC card ?
Solved! Go to Solution.
2023-03-15 12:13 AM
Hi,
if those two didn't heavily improve, then: analyze the timing behavior, in a first step use a logic analyzer on SPI + IRQ and find where time is lost, could be SPI speed, CS setup and hold times, incorrect timers in platform, ......
If unsure after a first analysis to ensure correct SPI decoding and looking at timings you can also post a trace here.
BTW: How are you measuring this time to read a card? What are your start and stop signals for this measurement?
Regards, Ulysses
2023-02-23 01:54 AM
Hi,
can you share some details about your application:
Rgds
BT
2023-02-23 10:29 PM
Hello,
We are using ST NFC reader IC ST25r3914. we have integrated ST RFAL stack with Renesas microcontroller RL78 over SPI.
We need Type -A and Type-V technology in application.
2023-02-24 01:27 AM
Hi,
the RFAL provides several layers. The answer to your question is depending on top of which layer your application is build and which feature you are using (e.g. wake up).
Feel free to send me more precise answers to my question related to your main loop to help me to understand how you use the RFAL so that I can support you more efficiently. Meanwhile, I assume your application is built on top of the RFAL High Layer:
Also, see UM2890 - RF/NFC abstraction layer (RFAL) - User manual for comprehensive information about the RFAL.
Rgds
BT
2023-02-27 02:36 AM
In my application inside platform.h file RFAL_FEATURE_WAKEUP_MODE is already set to false.
I have called st25r3911Isr() inside interrupt ISR of our microcontroller.
I have called democycle() inside a scheduler function repeating every 100ms.
Also I am not able to find these discParam.totalDuration parameter inside stack files.
2023-02-27 04:08 AM
Hi,
as explained, my previous answer is based on the assumption you use the RFAL High Layer. It is difficult to provide accurate answer without having more information about which layer of the RFAL is being used in your application. Feel free to send me your democycle code in private so that I can better support you.
Rgds
BT
2023-03-02 04:16 AM
Hi,
So we are using RFAL library for the STMicroelectronics X-NUCLEO-NFC05A1.
We have called democycle() in a routine function repeating every 100ms,
if(u1_NfcInitFd == FALSE)
{
u1_NfcInitFd = demoIni();
}
else
{
demoCycle();
}
2023-03-02 05:05 AM
ok but what is inside demoCycle?
2023-03-13 11:09 PM
This is inside democycle() function ,
Here in RFAL_NFCA_T4T switch case we detect our tag.
2023-03-14 02:50 AM
Hi,
as written by Brian before: Look into totalDuration which is a paramater to rfalNfcDiscover() and calling rfalNfcWorker() every 100ms will make NFC communication very slow. For NFC-A I expect multiple calls being needed before a tag is anti-collided. Go down to 1ms or even below.
Regards, Ulysses