This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

need sample code for TRF7970A to authenticate, read/write Mifare Ultralight C tags.

Other Parts Discussed in Thread: TRF7970A, MSP430F2370

Hello,

I was able to successfully implement anticollision, read UID, read and write into Ultralight C tags. Our project requires storing sensitive data on tags. We would like to use the security features available on MLUC tags to do the same.

Could you please provide sample code to authenticate MLUC tag. Our h/w has MSP430F2370 + TRF7970A communicating in parallel mode.

  • Hey Vinay,

    Ultralight C tags don't have any encryption.  If you are able to read UID, read & write, then you have full functionality of the tag.  

    I think what you are actually wanting are Mifare Classic cards.  Correct?

    Thanks,

    JD  

  • Hello JD,

    Thank you for the reply. I have attached a couple of pdf highlighting the features of Mifare Ultralight C tags which say that ultralight C has 3DES authentication option using which data on the tags can be locked and only on successful authentication data on the tags can be read or overwritten.

    http://nfc-tools.org/index.php?title=MIFARE_Ultralight_C

    The application we are working on requires that only authenticated readers must be able to read and write into tags. Hence we thought we could use ultralight C tags. Do you have any suggestions on which tags to us for quick implementation. Our PCB boards and plastics will be ready by the end of the month. I was hoping with TI's help we can complete the firmware development in this time as well. Please advice.

    Thanks,

    Vinay

    7028.MF0ICU2_SDS.pdf2273.ultralightc.pdf

  • Hey Vinay,

    I understand now.  Unfortunately, we don't have any code examples that do 3DES encryption.  

    We do have some example code that does DES --> AES personalization and then have some code that does AES Authentication.  We tested this code with the Mifare Desfire EV1 tags.  Here is an NXP app note talking about it.  

    I didn't see any mention of AES in the .pdf's you linked, so I'm not sure if these tags you have, have this functionality.  

    If you still would like this code, you must go here to request it.  Since it's has encryption in it I can't just openly post it.    

    Thanks,

    JD

  • Hello JD,

    It looks like the link you have provided me to request code, is for a different microcontroller. We have MSP430F2370+TRF7970A communicating in parallel mode on our PCB. Could you please let me know as to how i can use the code and get it working on my board OR say on the TRF7970AEVM.

    Also, I understand from your reply and from other posts on the forum that you can provide support (sample code) for authenticating, reading and writing Mifare Desfire EV1 tags and Mifare Classic 1K tags. Is this correct? Are there any other tags (with security features) that we can use with TRF7970A for which you can provide sample code for authenticating, read and write functions? Please Advise.

    Thanks,

    Vinay

  • Hello Sir,

    Recently I came across NFC/RFID coins and Card read.

    I was searching on this. But did'nt find any sample example to read and write from/to coins/card.

    I am using Mifare Ultralight Type C. I saw the structure, it contains pages.

    Can you please help me to read and write to particular Byte of pages. Is Page and Byte is similar to Sector and Block?

    Please reply as early as possible.

    Thanks.

  • Dear Vinay,

    We are also using Ultralight C tags and able read UID of all cards using TRF7970AEVM with sample code. Now we want read write in to these cards.

    Could you please provide sample code read write in to these cards as i am very new to this NFC technology.

     

    Sanjeev

  • Hello vinay krishna,

    I need the firmware to write/read from the Mifare tag. Now i am able to read and write into NFC tag, But now my requirment is to write into the Mifare tag.  Please share the firmware (Embedded C code). I am using MSP40FR5969 + TRF7970A module.

    Thanks,

    Anil D.