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-14 11:36 PM
Hello,
So I have tried to reduce totalDuration to 100 , 200ms but there is no change in card detection delay Also same for calling rfalNfcWorker() every 100ms I tried to reduce it to 10ms and 1ms but there is no change.
But After setting the features in platform.h to false,
#define RFAL_FEATURE_T1T false /*!< Enable/Disable RFAL support for T1T (Topaz) */
#define RFAL_FEATURE_T2T false /*!< Enable/Disable RFAL support for T2T
I have reduced the delay from 1 seconds to 620ms now So Is there anything else I can do to reduce it more to 300ms.
This is my current RFAL configuration in platform.h
#define RFAL_FEATURE_LISTEN_MODE false /*!< Enable/Disable RFAL support for Listen Mode */
#define RFAL_FEATURE_WAKEUP_MODE false//true /*!< Enable/Disable RFAL support for the Wake-Up mode */
#define RFAL_FEATURE_NFCA true /*!< Enable/Disable RFAL support for NFC-A (ISO14443A) */
#define RFAL_FEATURE_NFCB true /*!< Enable/Disable RFAL support for NFC-B (ISO14443B) */
#define RFAL_FEATURE_NFCF true /*!< Enable/Disable RFAL support for NFC-F (FeliCa) */
#define RFAL_FEATURE_NFCV true /*!< Enable/Disable RFAL support for NFC-V (ISO15693) */
#define RFAL_FEATURE_T1T false//true /*!< Enable/Disable RFAL support for T1T (Topaz) */
#define RFAL_FEATURE_T2T false //true /*!< Enable/Disable RFAL support for T2T */
#define RFAL_FEATURE_T4T true /*!< Enable/Disable RFAL support for T4T */
#define RFAL_FEATURE_ST25TB true /*!< Enable/Disable RFAL support for ST25TB */
#define RFAL_FEATURE_ST25xV true /*!< Enable/Disable RFAL support for ST25TV/ST25DV */
#define RFAL_FEATURE_DYNAMIC_ANALOG_CONFIG false /*!< Enable/Disable Analog Configs to be dynamically updated (RAM) */
#define RFAL_FEATURE_DYNAMIC_POWER false /*!< Enable/Disable RFAL dynamic power support */
#define RFAL_FEATURE_ISO_DEP true /*!< Enable/Disable RFAL support for ISO-DEP (ISO14443-4) */
#define RFAL_FEATURE_ISO_DEP_POLL true /*!< Enable/Disable RFAL support for Poller mode (PCD) ISO-DEP (ISO14443-4) */
#define RFAL_FEATURE_ISO_DEP_LISTEN false /*!< Enable/Disable RFAL support for Listen mode (PICC) ISO-DEP (ISO14443-4) */
#define RFAL_FEATURE_NFC_DEP true /*!< Enable/Disable RFAL support for NFC-DEP (NFCIP1/P2P) */
#define RFAL_FEATURE_ISO_DEP_IBLOCK_MAX_LEN 256U /*!< ISO-DEP I-Block max length. Please use values as defined by rfalIsoDepFSx */
#define RFAL_FEATURE_ISO_DEP_APDU_MAX_LEN 1024U
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-03-15 02:40 AM
Hi,
I will check this. currently I'm using CAN messages to start and stop the communication so based on request and response from NFC I'm calculating time delay.
2023-03-30 09:07 AM
Hi,
is your issue solved?
Rgds
BT
2023-05-02 11:22 PM
Hi,
Current consumption now is coming till 500ms .