element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Dev Tools
  • Products
  • More
Dev Tools
Forum NXP - EXPLORE-NFC
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Dev Tools to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 19 replies
  • Answers 6 answers
  • Subscribers 82 subscribers
  • Views 4131 views
  • Users 0 members are here
  • board
  • nfc
  • dev
  • pn512
  • pn532
Related

NXP - EXPLORE-NFC

maurosmartins
maurosmartins over 11 years ago

Hello all,

 

I'm currently seeking for NFC solutions, and I've found this EXPLORE-NFC - NXP - ADD ON BOARD, NFC, FOR RASPBERRY | Farnell Portugal

 

this uses PN512 and I have already found other dev boards using PN532.

 

My question would be, what are the main differences between the two? would they be library compatible (communicating by SPI)?


Thanks in advanced,


Best regards, Mauro.

  • Sign in to reply
  • Cancel

Top Replies

  • hadifikri
    hadifikri over 10 years ago in reply to hadifikri +1
    Never mind, I got it.
  • hadifikri
    hadifikri over 8 years ago in reply to julia-rakitina +1 suggested
    The library that I used with my pi (2 and 3) was downloaded from nxp website. You can get it from http://www.nxp.com/documents/software/SW3693.zip look for folder NxpNfcRdLib. I surely hope the library…
  • michaelneurohr
    michaelneurohr over 8 years ago in reply to julia-rakitina +1 suggested
    Hi Julia, you can find all required and up to date resources at NFC Reader Library|NXP The software you need is NFC Reader Library for Linux . Make sure to download version 4.040.05.011646. The corresponding…
Parents
  • michaelneurohr
    0 michaelneurohr over 11 years ago

    Hi Mauro,

    the main difference between the PN512 and the PN532 is that the PN532 is combined with a microcontroller. So if you are using the PN532 with the Raspberry Pi, you can not directly talk to the NFC reader IC but to the firmware on the microcontroller if the reader IC.

    If you are using the Explore-NFC with the Raspberry Pi, you can talk directly to the PN512 over the SPI interface. That offers more flexibility in using the reader IC. To make working with the PN512 more comfortable, NXP provides a reader library that is included in the example projects which can be downloaded.

     

    The PN512 is NFC Forum complaint, the PN532 is not.

    The PN512 is supported by the NXP Reader Library (sources are available for download), the PN532 is not supported.

     

    Both ICs are supporting the same tags.

     

    Best Regards,

    Michael

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to michaelneurohr

    Hi Michael,

    I have PN512 and I use the Reader Library. I would like to change the key of the card. Can I do with this IC or not because I didn't find any solution for that.

     

    Thanks

    Grill

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • julia-rakitina
    0 julia-rakitina over 8 years ago in reply to hadifikri

    Hi hadifikri

     

    I need similar functionality, I have NFC-Explore and raspberry Pi2. I am giong to use Mifare Classic 1k

     

    How to implement this?
    I tried with NTAG216 cant find documentation to set a password

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • hadifikri
    0 hadifikri over 8 years ago in reply to julia-rakitina

    In order to set the password/authentication keys, all you have to do is write the keys to the "Sector Trailer" for every sector that you wish to protect. Each sector trailer (Block 3 of every sector)  have <Key A><Access Bits><Key B> entries. You may set the password just as how you write to any block.

    1) Activate the tag : phpalI14443p3a_ActivateCard(..)

    2) Initiate the tag : phalMfc_Sw_Init(...);

    3) Authenticate the tag with the current keys : phalMfc_Authenticate(...);

    4) Write the Sector Trailer: phalMfc_Write(...);

     

    Caution:

    If you wrongly set the access bit, you might brick the tag for good.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • julia-rakitina
    0 julia-rakitina over 8 years ago in reply to hadifikri

    Thank you very much for your response!

     

    And library is  https://github.com/christianeisendle/nxprdlib-kernel-bal  as I understand?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • hadifikri
    0 hadifikri over 8 years ago in reply to julia-rakitina

    The library that I used with my pi (2 and 3) was downloaded from nxp website. You can get it from http://www.nxp.com/documents/software/SW3693.zip  look for folder NxpNfcRdLib. I surely hope the library support has improved over the years.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • julia-rakitina
    0 julia-rakitina over 8 years ago in reply to hadifikri

    Dear hadifikri, I appreciate your answer.

    I am experienced  python/Java/javascript programmer and it is my new challenge with C, before I used Arduino boards sometimes.

    Could you please provide some details? What IDE should I use? How to run this examples? I found  SW3693 README but it is not for EXPLORE-NXP, asks for LPCXpresso IDE... image

    I feel stupid to ask such noob questions image,  but nobody  knows everything

    Thank you in advance image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelneurohr
    0 michaelneurohr over 8 years ago in reply to julia-rakitina

    Hi Julia,

     

    you can find all required and up to date resources at

    NFC Reader Library|NXP

     

    The software you need is NFC Reader Library for Linux. Make sure to download version 4.040.05.011646.

    The corresponding documentation that describes how to get started is AN11802: NFC Reader Library for Linux Installation Guidelines.

     

    Hope that helps,

    Michael

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • hadifikri
    0 hadifikri over 8 years ago in reply to julia-rakitina

    Hi julia-rakitina,

     

    I've uploaded some of my test code here https://hadifikri@gitlab.com/hadifikri/nxp-explorenfc.git. It has some basic function of reading and writing and changing any sector authentication keys.

    B.t.w, I'm still using the old library from 2 years ago image I've provided some instructions there to get you up to speed...

     

    Regards,

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • julia-rakitina
    0 julia-rakitina over 8 years ago in reply to hadifikri

    Hi hadifikri

    Thank you very much for your support! image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • noeldkendall
    0 noeldkendall over 8 years ago in reply to michaelneurohr

    That version of SW3693 does not compile cleanly for me on raspian jessie. Errors in example 5. Rest of build is OK.

     

    The problem lies in example 5. sDiscLoop.sTypeVTargetInfo causes compile errors.

     

    Looks like an issue with how include switches are set when building on and for a Pi with a nfs-explorer board.

     

    Trying to untangle without going deep down a rabbit hole.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • noeldkendall
    0 noeldkendall over 8 years ago in reply to hadifikri

    Abdul, do you know what version of SW3693.zip you downloaded? Current won't build cleanly on Raspbian Jessie June 2017.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • noeldkendall
    0 noeldkendall over 8 years ago in reply to hadifikri

    Abdul, do you know what version of SW3693.zip you downloaded? Current won't build cleanly on Raspbian Jessie June 2017.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube