cancel
Showing results for 
Search instead for 
Did you mean: 

read the memory content from a mifare and/or Felica

PNamg.1295
Associate

I would like to be able to read the memory content from a mifare and/or Felica tag similar to how the NXP tag detector app on Android does. How would I go about doing that?

I have implemented the demo polling example using nfc03a1 and a non st chip over SPI. When reading the Felica tag I get the UID and system code but I get "check block: FAIL". it seems this if statement is failing: checkRes[RFAL_NFCF_CHECKUPDATE_RES_ST1_POS] != RFAL_NFCF_STATUS_FLAG_SUCCESS in the rfalNfcfPollerCheck function.

this is the output:

Felica/NFC-F card found. UID: 0116050028172008
>>>> 02050451100680
<<<< 0000
>>>> 090468010150
<<<< 0000
>>>> 09040A0102A1
<<<< 0000
 DATA >>>> 060116050028172008010B00018001
 
DATA <<<<(0x800C) 0C07011605002817200801A6
 00
 (retCode=0)
checkres[0]:7
checkres[1]:1
checkres[2]:16
checkres[3]:5
checkres[4]:0
checkres[5]:28
checkres[6]:17
checkres[7]:20
checkres[8]:8
checkres[9]:1
checkres[10]:a6
checkres[11]:a0
ret: 5
 Check Block: FAIL Data:
>>>> 02020000
<<<< 0000
>>>> 070E0A2100380118002460607C843F00
Wake Up mode started

For the mifare tag all i get is the UID. Would using ndef commands help me read their memory content?

1 ACCEPTED SOLUTION

Accepted Solutions
Brian TIDAL
ST Employee

Hi,

regarding DESFire T4T formatting, see Application Note AN11004 (MIFARE DESFire as Type 4 Tag) from the manufacturer of this tag. If your application basically requires memory read/memory write only, I would suggest to use ST25TA tags instead of DESFire.for T4T and ST25TN tags instead of MIFARE UL for T2T

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.

View solution in original post

4 REPLIES 4
Peter BENSCH
ST Employee

Mifare is a proprietary protocol and can therefore only be supported by its manufacturer, see e.g. also here.

For FeliCa™ see e.g. there.

Regards

/Peter

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.
Ulysses HERNIOSUS
ST Employee

Hi,

Mifare: it depends, which variant: Mifare Classic is proprietary. Mifare UL / Desfire should be compatible (when formatted) to NFC Forum T2T/T4T.

This way they will be read by e.g. STSW-ST25R017 (ST25 Embedded NFC lib for ST25R95) using its ndef_rw project.

BR, Ulysses

Resolved the Felica memory read issue by using the correct nfcid2 and the NXP_APP defined service code in the RFAL_NFCF header file.

In terms of formating Mifare cards, what does it mean to format a Mifare Desfire to NFC Forum T4T? Is it similar to formatting a hard drive from one file system to another? Would it still be recognized as a Mifare Desfire card in the NXP Tag Info app?

Thank you,

Palden

Brian TIDAL
ST Employee

Hi,

regarding DESFire T4T formatting, see Application Note AN11004 (MIFARE DESFire as Type 4 Tag) from the manufacturer of this tag. If your application basically requires memory read/memory write only, I would suggest to use ST25TA tags instead of DESFire.for T4T and ST25TN tags instead of MIFARE UL for T2T

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.