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 card polling problem
  • 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 Verified Answer
  • Replies 18 replies
  • Answers 2 answers
  • Subscribers 11 subscribers
  • Views 2639 views
  • Users 0 members are here
Related

card polling problem

Former Member
Former Member over 10 years ago

Hi

 

I have both the first raspberry pi and pi2. I am doing a college project and trying to make an NFC student registering system with the Pi and an explore-NFC add-on board. I have followed every single step from their start-up guide on trying the card_polling project demo but when I type ./card_polling to execute it, it just says:

/****** Begin Polling ******/

 

and stays like that without any further action.

Im using this on my new pi2.

 

Ive fully updated everything required as well! What am I doing wrong?

 

Thanks!

  • Sign in to reply
  • Cancel

Top Replies

  • michaelneurohr
    michaelneurohr over 10 years ago +1 verified
    Hi, the software projects are not working anymore with the latest Raspbian image. Looks like the update is breaking something.
Parents
  • mcb1
    0 mcb1 over 10 years ago

    I presume you are swiping the card you received with the kit??

    These are the 13.5 Mhz cards.

     

    You did reboot after intialising/enabling SPI.??

     

    I'll try to get a chance to try mine tomorrow or the next day.

     

     

    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

    Ive enabled SPI yes and I've rebooted it about 10 times now. I didn't receive any card with it but the cards not the problem. The card_polling should be running within a loop and should be showing output even without a card being swiped. there is no output at all for some reason!

     

    thanks!

    • 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

    Okay understood.

     

    The details are sketchy on what to expect, but I think you'll find that unless you swipe a card there is no output.

     

    You can check the process is running ps -ef

    http://www.raspberry-projects.com/pi/command-line/processes

     

    Got held up today in town so it might be a bit later.

    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

    Okay I will try again, however I have these NTAG203 stickers Which I have tried and did not work. Will these be the wrong tags?

     

     

    Thanks

    • 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

    Amin

    Sorry I got held up again.

     

    Not sure but I scanned the card that came with the EXPLORE - NFC (it looks like an advertising/business card and has MIFARE Ultralight in the red section and a number on the rear bottom left just above the website)

     

    The card is blank but should show up as a card number.

    The tags are a different format, so I'm not sure.

     

    Mark

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

    Amin

    I've struck the same issues you have.

    I've tried using the normal software and even installed the windows version which gives you the software and no joy.

     

    All the documentation points to using Raspbian-wheezy rather than raspbian from NOOBs and I can't see it making any difference.

     

    Tomorrow I might try on an older distribution and Pi B to see if there is a difference.

     

    I don't know enough about the cmake process to see whats happening but I suspect something isn't being initialised.

     

     

    Mark

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

    Hi Mark,

     

    yes I've been trying several times to get this right and still no luck. I was actually thinking the same thing about the older model B. Could it be that something to do with the newer model having more pins? I'm going to try it with the old model today as well.

     

     

    Thanks

    • 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 Former Member

    I just configured the model B and the exact problem rises. I had a look at the source code written in C and fiddled around with it a little. It seems that the if else statements are not working at all! When no card is detected the loop is supposed to print "No card or Tag detected". Even this is not showing so there must be something wrong with the code. Atm I don't have enough time to look through the long code but our answer may well lie in the source code!

    I might hit up the writers of this code and ask for help

     

     

    Thanks

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

    I just configured the model B and the exact problem rises. I had a look at the source code written in C and fiddled around with it a little. It seems that the if else statements are not working at all! When no card is detected the loop is supposed to print "No card or Tag detected". Even this is not showing so there must be something wrong with the code. Atm I don't have enough time to look through the long code but our answer may well lie in the source code!

    I might hit up the writers of this code and ask for help

     

     

    Thanks

    • 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