Skip to main content
Associate II
September 26, 2024
Solved

NUCLEO-F401 to read ST25TV UID

  • September 26, 2024
  • 2 replies
  • 7939 views

Hi ST Community

I have a ST25TV tag,The UID is E0 02 08 03 8F 65 C9 F5(8bytes)

I use the board of NUCLE0-NFC08A1 and the demo in NFC6 generated by Cube MX.

I can read the relevant information of the card through the SPI provided in the demo and  than print the UID of the card to the serial port(Figure1),

but I am unable to see the waveform related to the tag's UID on the logic analyzer. Could it be because the UID is encoded during transmission?

I cannot find the corresponding UID in the waveform diagram.

How can I obtain the UID by analyzing the waveform?

 

Figure1:

Rance_0-1727358774182.png

FIFO data:

Rance_1-1727358885913.png

waveform:

Rance_2-1727358937104.png

 

 

 

This topic has been closed for replies.
Best answer by Brian TIDAL

Hi,

what you see on the SPI trace is the manchester stream between the reader and the tag. This stream of data in then decoded by the FW.

You can decode it by porting rfal_iso1693_2.c in your environment.

Rgds

BT

2 replies

Brian TIDAL
Brian TIDALBest answer
Technical Moderator
September 26, 2024

Hi,

what you see on the SPI trace is the manchester stream between the reader and the tag. This stream of data in then decoded by the FW.

You can decode it by porting rfal_iso1693_2.c in your environment.

Rgds

BT

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
RanceAuthor
Associate II
September 26, 2024

Should I decode the data read from the FIFO using the APIs in rfal_iso1693_2.c?

Or, is there any other data that needs to be decoded?

 

Brian TIDAL
Technical Moderator
September 26, 2024

Hi,

you can directly decode the data read from the FIFO. Just one question, why do you want to decode those data from the SPI whereas the MCU decodes those data? Can you describe the use case?

Rgds

BT

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
RanceAuthor
Associate II
September 26, 2024

Hi,

Because I need to communicate with the ST25R3916B using the I²C protocol via an STC8 series microcontroller, and due to the lack of example code, I have to figure out on my own which ST25R3916B register addresses I should operate on, and how to correctly process the data received in the FIFO to obtain the UID from the tag.

Brian TIDAL
Technical Moderator
September 26, 2024

Hi,

the NFC RF Abstraction Layer (aka RFAL) and associated demos are written in C and can ported to non-ST MCU in accordance with the Software Licence Agreement. If I2C is needed, this interface can be selected through STM32CubeMX (of course some 0 Ohm resistors needs to be modified on the board as described in the UM2616 user manual). This enables RFAL_USE_I2C to communicate over I2C.

I would suggest to port the RFAL middleware rather than writing you own code. See also UM2890 - RF/NFC abstraction layer (RFAL) - User manual

Rgds

BT

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.