2021-10-13 08:40 AM
I'm trying to read a T2T tag with NFC card reader, Nucleo expasion board attached to STM32F103 Nucleo board. I'm using an example from X-CubeExpansion_NFC3
This tag is well formatted with NDEF, but when I try to read with this example, I get an error in ndefPollerNdefDetect(). This funtion returns ERR_PROTO.
If I read this tag with any other application, I can read it content.
Can you help me with this problem. I'm sure, I'm doing something wrong, but I don't know what is
Thank you in advance, looking forward to hearing from you
Carmen
Solved! Go to Solution.
2021-10-14 01:38 PM
Hi Carmen,
The tag you are using is not an NFC Forum T2T tag. It support NDEF in a proprietary way. The ST25 NDEF layer is NFC Forum based and does not implement the support of this proprietary stuff.
I would suggest to use true T2T tags such as ST25TN.
Rgds
BT
2021-10-14 05:01 AM
Hi Carmen,
can you dump the content of the tag memory and share it with me so that I can have a look? You can use various Android apps to dump the tag memory.
Some addition questions: Which tag do you use (model, manufacturer)? Is there any memory lock TLV or reserved area TLV in this tag? The current X-CUBE-NFC3 has some limitations regarding the memory lock TLV/reserved area TLV support. Can you try to update the RFAL and the NDEF from the latest ST25 Embedded NFC library that provides full support of the memory lock TLV and reserved area TLV?
Rgds
BT
2021-10-14 05:05 AM
2021-10-14 05:44 AM
Hi Camem,
i can see an NDEF Text record inside the memory ("TECNALIA " text) but the T2T Capability Container seems to be corrupted.
The CC is supposed to be located at physical block #3 and is supposed to start with E1h magic number followed by version 10h.
The current content is
Block # content
00 EC6FF20E Internal
01 7F880400 Internal
02 C08E3B51 Internal + lock
03 65501113 <----Capability container
Also I can see some strange 03E103E1 blocks before the NDEF TLV.
As the CC file does not contain a valid E1h magic number, the ndefPollerNdefDetect returns an ERR_PROTO error.
I would suggest to check the tag memory content and make sure it compliant with NFC T2T specification.
Rgds
BT
2021-10-14 06:27 AM
2021-10-14 06:41 AM
Hi Carmen,
can you share with me (in private message if needed) the tag model and manufacturer? Which mobile reader do you use? Does the mobile reader read only the tag memory content or as well the NDEF content? Note that many apps declare that tags are T2T even when not properly NDEF formatted. Which app have you used to write the NDEF message into the tag?
Actually the memory dump you sent me is quite strange.
Thanks
Rgds
BT
2021-10-14 07:05 AM
Hi,
I don't know the manufacturer or tag model. I used a Samsung mobile. I don't know what the reader reads.
I have used the app called TagWriter from NXP.
Maybe the tag is corrupted. In a few fays, I'll get new tags and I´ll try again the example.
Don't worry, if in a fw days, I have the same problem, I'll contact you again.
Thank you
Carmen
2021-10-14 01:38 PM
Hi Carmen,
The tag you are using is not an NFC Forum T2T tag. It support NDEF in a proprietary way. The ST25 NDEF layer is NFC Forum based and does not implement the support of this proprietary stuff.
I would suggest to use true T2T tags such as ST25TN.
Rgds
BT
2021-10-14 09:56 PM
2021-10-14 11:31 PM
Hi Carmen,
there is a good chance that you are actually looking Mifare Classic tags formatted for NDEF format:
Best Regards, Ulysses