element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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
  • About Us
  • 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
EXPLORE-NFC
  • Products
  • Dev Tools
  • EXPLORE-NFC
  • More
  • Cancel
EXPLORE-NFC
Forum neard-explorenfc, neardal and reading a card's UID
  • Blog
  • Forum
  • Documents
  • Events
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join EXPLORE-NFC to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 8 replies
  • Subscribers 11 subscribers
  • Views 1303 views
  • Users 0 members are here
Related

neard-explorenfc, neardal and reading a card's UID

Former Member
Former Member over 10 years ago

Hi,

 

I've tried neard-explorenfc and neardal and faced the following problems:

 

.) It seems to be impossible to read the card's UID, which I need for my application. I've digged through the sources and it seems to me that it's just able to read NDEF records but nothing "low level".

.) While successfully reading NDEF records from Mifare Ultralight and NTAG203 tags, I was unable to read records from a Mifare Classic 1k card.

 

Am I missing something? I've also tried to interface with the new nxprdlib directly but as the SPI communcation parts moved to wiringpi, I'm stuck there and don't know how to init the BAL.

 

I'd be glad if someone could point me to the right direction. I've really had a hard time trying to figure things out, there just seems to be no to very little documentation.

 

Thanks in advance an best regards,

 

Leandros

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 10 years ago

    Ok I've figured out how to init the BAL:

     

    .) Configure neard-explorenfc-0.1 as described in the Readme

    .) Just build nxprdlib

    .) Put resulting libnxprdlib.a to /usr/local/lib

     

    Code:

     

    [...]

    phbalReg_RpiSpi_DataParams_t spi_balReader;

    phStatus_t status;

     

    /* Init SPI BAL */

    status = phbalReg_RpiSpi_Init(&spi_balReader, sizeof(phbalReg_RpiSpi_DataParams_t));

    if (status != PH_ERR_SUCCESS) {

       fprintf(stderr, "Error initializing BAL!\n");
       return 1;

    }

    [...]

     

    ...and then link against wiringpi and nxprdlib, e.g.:

     

    gcc -o test test.c -Itypes -Iintfs -L/usr/local/lib -lwiringPi -lnxprdlib

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

    I've finally managed to find a API documentation:

     

    http://www.nxp.com/documents/software/SW297933.zip

     

    This is related to PNEV512B but the API of nxprdlib is not any different there...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mcb1
    0 mcb1 over 10 years ago in reply to Former Member

    I have an EXPLORE-NFC kit.

    The software isn't working on the latest distribution of Raspbian (from NOOBs), which was confirmed earlier.

     

    The files don't appear to fix anything ...they install but there are no examples to run.

    (It is being passed back to NXP)

     

    Is there a chance you could enlighten me on getting this to run.

    It shouldn't be that hard, as its a simple kit.

     

     

    Thank

    Mark

     

    BTW Linux is like some foreign language where I know how to say hello and thanks, so don't assume anything.

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

    Hi,

    there war a mistake in the Start-up Guide. Please try running the basic example with the command

    explorenfc-basic

     

    Michael

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

    michaelneurohr

    Thanks for your reply.

     

    I received the information a couple of hours ago via another path, and it indeed works.

     

    While this gives the message

    Tag found

    there is little else.

     

    Should there be more.?

     

    Thanks

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to mcb1

    Hi Mark,

     

    I guess either there is no NDEF record on your tag, or you're trying to read a record from a Mifare Classic tag. Try to write to the Mifare Ultralight card that's coming with the board with NFC tools (Android) for example and reading it afterwards. This way I could read the Ultralight but couldn't succeed in reading a Classic tag.

     

    Regards,


    Leandros

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mcb1
    0 mcb1 over 10 years ago in reply to Former Member

    leandre84

    The tag was the one supplied ...so quite possibly.

     

    I'll have a look in a more civilised hour.

     

     

    Thanks

    Mark

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

    Hi Mark,

    this software is providing a new architecture approach. It provides full compatibility to the Linux-NFC approach driven by Intel.

     

    The great benefit of this approach is that Linux-NFC got already integrated into the Linux Kernel since version 3.1 (current is 3.19).

    The developer can access the NFC hardware by using the NeardAL API in his application. This API is also maintained by Intel.

    Because of this integration, Linux-NFC got the standard for using NFC hardware which is integrated into the Computer hardware. It enables you to create NFC applications without the need to take care of the underlying NFC controller.


    The NeardAL API supports exchanging NDEF messages via Reader/Writer mode and P2P. It supports data carrier handover and Bluetooth/WiFi pairing.


    So as already mentioned by another user, you need to write an NDEF message onto your tag.


    Michael

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
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