• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Low Power RF & Wireless Connectivity » RFID/NFC Forum » TRF7970A with Mifare three pass authentication
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

TRF7970A with Mifare three pass authentication

This question is answered
Kun-Yuan Lin
Posted by Kun-Yuan Lin
on Mar 05 2012 00:09 AM
Prodigy70 points

I want to use the MAP430+TRF7970A to read a Mifare Classic 1K card.

As I finish ISO14443 SELECT command, I set command to TRF7970A to do three pass authentication.  ( Direct Mode2 - Parallel )

As below:

0x8F, 0x90, 0x3D, 0x00, 0x04, 0x60, 0x00, CRCA, CRCA (use KEY A to authenticate block 0)

And I successful get the card nonce. (4 byte)

Then I initial the crypto function (Set Key = 0xFFFFFFFFFFFF) and get 8 byte reader response to transmit to card.

But I can't get the card response to finish the  three pass authentication.

Thanks.

Mifare TRF7970A crypto
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Axxe
    Posted by Axxe
    on Mar 05 2012 05:46 AM
    Intellectual645 points

    you should write here some tagNonces and the relative answers to check if they are correct.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Josh Wyatt
    Posted by Josh Wyatt
    on Mar 05 2012 10:17 AM
    Verified Answer
    Verified by Kun-Yuan Lin
    Expert8780 points

    Kun -

    are you using the Mifare example code(s) we have? i sent you the activation ID to: cyclon0221 email address...is this correct? i did not see that you activated it yet, though.

    anyway - you must use DM0 to perform the 3 round auth. Please have a look at the code and the attached set of slides - note slide 7 shows special step for the TRF7970A when going into DM0.

    5736.TRF79xx_Mifare_Direct_Mode.pdf

    BR-

    Josh

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer
    button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kun-Yuan Lin
    Posted by Kun-Yuan Lin
    on Mar 05 2012 18:35 PM
    Prodigy70 points

    Thanks, Josh.

    Now I know I must use DM0 to do that.

    Thanks!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Manuel Lopez Palma101332
    Posted by Manuel Lopez Palma101332
    on Apr 09 2012 12:26 PM
    Prodigy80 points

    Hi Josh

    I have a similar problem . It means , I am using the  DM0  with mifare cards   ; but I do not get the answer from the card .  I sent the key FF FF FF FF FF FF

    But I do not get  the answer from the card.  I check the  timing   and it  match with the  5736.TRF79xx_Mifare_Direct_Mode  . The time  are 9.6uS   and 2,8uS for t1

    the auth1_command is   num byte to send is 4
    60    01    00    01    F5    01    7B    01



    14:50:35.368    --> 0109000304A0010000
    14:50:35.499    <-- 0109000304A0010000
    14443A REQA.
    [7E6BB22582](67)
    14:50:35.520    --> 010A0003041850000000
    14:50:35.659    <-- 010A0003041850000000
    Request mode.
    []
    14:50:35.708    --> 010D000304A27E6BB225820000
    14:50:35.841    <-- 010D000304A27E6BB225820000
    14443A Select.
    (0400)[08]
    14:50:41.342    --> 010E000304C0FFFFFFFFFFFF0000
    14:50:41.494    <-- 010E000304C0FFFFFFFFFFFF0000
    Crypto1 set key.
    Initialization ok

    14:50:41.556    --> 010F000304C160007E6BB225820000
    14:50:41.703    <-- 010F000304C160007E6BB225820000
    Crypto1 authentication step 1.
    !! 00 bytes and 00 bits received, expected 4 bytes and 0 bits. Abort

    I am using the code getted from you  for 7960  , there are available  code for 7970


    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Josh Wyatt
    Posted by Josh Wyatt
    on Apr 09 2012 17:04 PM
    Expert8780 points

    just sent you the -70A code - to you regular email

    BR-

    Josh

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer
    button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Manuel Lopez Palma101332
    Posted by Manuel Lopez Palma101332
    on Apr 16 2012 06:58 AM
    Prodigy80 points

    Hi Josh

     The  question is answered ; but I did not see the button on the post

    Many thanks

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ken Gao
    Posted by Ken Gao
    on Apr 19 2012 02:00 AM
    Prodigy20 points

    Hi Josh:

    I have a project use M4 + TRF7970A.

    But I don't know how to do read and write mifare classic cards.

    Can you send the Mifare example code(s)  to me.

    Best Regards,

    Ken 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Joan Puig
    Posted by Joan Puig
    on Jul 17 2012 05:09 AM
    Prodigy235 points

    Hello Josh,

    I'm working on MSP430+TRF7970A and I would like to read/write MiFare cards.

    Please, How can I get the MiFare sample code for MSP430+TRF7970 ?

    Regards,

    Joan.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Josh Wyatt
    Posted by Josh Wyatt
    on Jul 18 2012 08:16 AM
    Expert8780 points

    Ken -

    please sign up for the LM3S code here and then we can send you the LM4F version separately.

    http://www.ti.com/tool/sw-dk-lm3s9b96-em2-trf7960-14443a

    Thanks!

    BR-

    Josh

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer
    button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Josh Wyatt
    Posted by Josh Wyatt
    on Jul 18 2012 08:31 AM
    Expert8780 points

    Joan -

    are you working directly with TI salesperson/rep? if so, then they can contact me directly and get you set up on the TI Extranet for this code project.

    if not, then we need to figure out a way for you to fill out some infomation we need from you, then we can set it up.

    also, you will need my.ti.com account (this is free), maybe you have one already since you are E2E member, so then you can get into the Extranet.

    BR-

    Josh

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer
    button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Joan Puig
    Posted by Joan Puig
    on Jul 18 2012 08:42 AM
    Prodigy235 points

    Thank you so much !

    We are just working with our salesperson in order to get acces.

    Thanks,

    Joan.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Josh Wyatt
    Posted by Josh Wyatt
    on Jul 18 2012 08:52 AM
    Expert8780 points

    no problem - maybe this is Marcos Lopez? if so, i just sent him the internal link to register you.

    BR-

    Josh

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer
    button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Joan Puig
    Posted by Joan Puig
    on Jul 18 2012 08:57 AM
    Prodigy235 points

    Yes, is Marcos Lopez.

    I'm from DRACO SYSTEMS, we are TI Design House.

    Best,

    Joan.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Josh Wyatt
    Posted by Josh Wyatt
    on Jul 18 2012 10:59 AM
    Expert8780 points

    Joan -

    i just approved the request that Marcos put in for you - so now you will get an email from TI Extranet admin when it is all set up - should not be too long - maybe today sometime most likely.

    BR-

    Josh

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer
    button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Joan Puig
    Posted by Joan Puig
    on Jul 18 2012 11:08 AM
    Prodigy235 points

    Josh,

    Thank you very much !

    Best,

    Joan.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use