2023-01-31 04:46 PM
Hello,
I have an application whereby we have one ST25R3916B connected to 8 different antennas through relays. We need to read each antenna but with about 5-10 seconds between. This should allow enough time to initialize each antenna including AAT. The question is how is the best way to do this with the RFAL? I'm using the Polling Demo as a starting point since that looked like the easiest. Is this the correct order of operations? Will this properly clear out any lower level state variables that should be cleared between the different antennas?
Stop the IC, using rfalNfcDeactivate(RFAL_NFC_DEACTIVATE_IDLE)
Pause rfalNfcWorker()
<switch the antenna relay, and wait for it to settle>
Do everything in demoIni(), including
rfalNfcInitialize()
Configure the discParams,
Next, do the stuff in state DEMO_ST_START_DISCOVERY, including:
Deactivate again (???)
rfalNfcDiscover with our discParams
Next, do everything in DEMO_ST_DISCOVERY to read the UUID of the tag and be done.
Solved! Go to Solution.
2023-02-01 11:53 PM
Hi,
sounds about right what you plan. After issuing rfalNfcDeactivate(RFAL_NFC_DEACTIVATE_IDLE), please wait for RFAL_NFC_STATE_IDLE to be actually entered.
Best Regards, Ulysses
2023-02-01 11:53 PM
Hi,
sounds about right what you plan. After issuing rfalNfcDeactivate(RFAL_NFC_DEACTIVATE_IDLE), please wait for RFAL_NFC_STATE_IDLE to be actually entered.
Best Regards, Ulysses