Skip to main content
Associate II
August 4, 2023
Solved

I am using STM32L476RG board with x-nucleo-NFC05a1 with ST25R3911B chip.

  • August 4, 2023
  • 4 replies
  • 4092 views

Use to read the data from the capture card.

FGang_0-1691136743108.png

I want to read the data captured by the card and I get an error when I read it using the function rfalNfcvPollerReadSingleBlock.

FGang_1-1691136817144.png

How can I change it?

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

Hi,

please see the ST25 Embedded NFC lib which contains full examples of reading NDEF from NFC Forum formatted tags. Not sure if you need the NDEF part but it shows how to use the mentioned functions.

Best Regards, Ulysses

4 replies

Ulysses HERNIOSUS
Technical Moderator
August 4, 2023

Hi,

shown code should give a compile error - you are reference a variable named E002510002812B14 but you need to provide a pointer to a buffer containing that byte string!

Regards, Ulysses

FGangAuthor
Associate II
August 7, 2023

Still having trouble. Can you help me with the code? 

Ulysses HERNIOSUS
Technical Moderator
August 7, 2023

Hi,

please investigate on proper definition of C arrays and pointers!

Likely you will want to use something like 

const uint8_t buffer[] = "\xE0\x02\x51\x00\x02\x81\x2B\x14";

 Best Regards, Ulysses

FGangAuthor
Associate II
August 9, 2023

FGang_0-1691564705684.png

Whether reading a single block or multiple, the data cannot be read. Is there a problem somewhere?

Ulysses HERNIOSUS
Technical Moderator
August 10, 2023

Hi,

you need to place these calls into the demoCycle() at the write state and technology (At the place where it reports the card to be found ( platformLog("ISO15693/NFC-V card found. UID: ...). Only there it is guaranteed that the field is on and the chip is set to the right state. This is the usual way. 

Only if you are certain that you only want to send out these rfalNfcVReadSingleBlock() without knowing that the tags are in the field you can deviate. E.g. calling rfalFielOnAndStartGT() and after rfalNfvPollerInitialize() and then your commands. Please check the rfal.chm file for details.

Regards, Ulysses

FGangAuthor
Associate II
August 16, 2023

I'm putting these calls into demoCycle(), but it doesn't have the desired effect. It is not possible to read the data inside the st25DV on the capture side.
How do I put these calls into demoCycle()? Thank you for your help.

Ulysses HERNIOSUS
Technical Moderator
August 16, 2023

Hi,

please see the ST25 Embedded NFC lib which contains full examples of reading NDEF from NFC Forum formatted tags. Not sure if you need the NDEF part but it shows how to use the mentioned functions.

Best Regards, Ulysses