Skip to main content
Explorer
February 1, 2023
Solved

How to multiplex antennas with the ST25R39xx and RFAL

  • February 1, 2023
  • 1 reply
  • 646 views

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.

    This topic has been closed for replies.
    Best answer by Ulysses HERNIOSUS

    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

    1 reply

    Technical Moderator
    February 2, 2023

    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