<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Pi Passport: Step 2: Setting up NFC</title><link>/members-area/personalblogs/b/blog/posts/pi-passport-step-2-setting-up-nfc</link><description>See the first post: project introduction Here I&amp;#39;m going to go through really simple set up with NFC, which I promise is dead quick, using Python as it&amp;#39;s simplest. This assumes you know how to set your pi up, and have it all ready for put...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Pi Passport: Step 2: Setting up NFC</title><link>https://community.element14.com/members-area/personalblogs/b/blog/posts/pi-passport-step-2-setting-up-nfc</link><pubDate>Fri, 14 Aug 2015 10:03:04 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:34fd4092-a924-4c51-9d61-c3aba4abbc14</guid><dc:creator>e14 Contributor</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hello Charlotte. I have Raspberry and Element14 NFC device(PN512). Maybe you can help me to fing any examples how to work with it from java code?&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=18168&amp;AppID=293&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Pi Passport: Step 2: Setting up NFC</title><link>https://community.element14.com/members-area/personalblogs/b/blog/posts/pi-passport-step-2-setting-up-nfc</link><pubDate>Mon, 08 Jun 2015 15:11:48 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:34fd4092-a924-4c51-9d61-c3aba4abbc14</guid><dc:creator>e14 Contributor</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hello Charlotte&lt;/p&gt;&lt;p&gt;I followed several times your installation instructions as described.&lt;/p&gt;&lt;p&gt;I always get the following error when you run the read.py&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;pi@raspberrypi ~ $ sudo python read.py&lt;/p&gt;&lt;p&gt;Traceback (most recent call last):&lt;/p&gt;&lt;p&gt;&amp;nbsp; File &amp;quot;read.py&amp;quot;, line 3, in &amp;lt;module&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uid=nxppy.read_mifare()&lt;/p&gt;&lt;p&gt;AttributeError: &amp;#39;module&amp;#39; object has no attribute &amp;#39;read_mifare&amp;#39;&lt;/p&gt;&lt;p&gt;pi@raspberrypi ~ $ &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;hast du mir da einen type?&lt;/p&gt;&lt;p&gt;Dank dir aus der Schweiz&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;fswema&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=18168&amp;AppID=293&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Pi Passport: Step 2: Setting up NFC</title><link>https://community.element14.com/members-area/personalblogs/b/blog/posts/pi-passport-step-2-setting-up-nfc</link><pubDate>Tue, 10 Mar 2015 13:28:49 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:34fd4092-a924-4c51-9d61-c3aba4abbc14</guid><dc:creator>e14 Contributor</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;I get the following error after running the script:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;File &amp;quot;read.py&amp;quot;, line 5&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;uid=nxppy.read_mifare()&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;IdentationEror:expected as indented block&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;Any suggestions for how to get this working? I&amp;#39;ve been trying for days to get the shield up and running, so any help is more than welcomed. And thank you for this tutorial! &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-34fd4092-a924-4c51-9d61-c3aba4abbc14/contentimage_5F00_1.png:16:16]&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=18168&amp;AppID=293&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Pi Passport: Step 2: Setting up NFC</title><link>https://community.element14.com/members-area/personalblogs/b/blog/posts/pi-passport-step-2-setting-up-nfc</link><pubDate>Tue, 03 Feb 2015 12:45:54 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:34fd4092-a924-4c51-9d61-c3aba4abbc14</guid><dc:creator>computewithpi</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Thanks for the tutorial for the EXPLORE NFC board. I appreciated it.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=18168&amp;AppID=293&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Pi Passport: Step 2: Setting up NFC</title><link>https://community.element14.com/members-area/personalblogs/b/blog/posts/pi-passport-step-2-setting-up-nfc</link><pubDate>Tue, 03 Feb 2015 11:57:18 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:34fd4092-a924-4c51-9d61-c3aba4abbc14</guid><dc:creator>e14 Contributor</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;The &lt;a class="jive-link-external-small" href="http://grh.premierfarnell.com/pageredir.aspx?c=EU1&amp;amp;u=jsp/search/displayproduct.jsp?SKU=2366201%26CMP=SOM-e14-Blog-CGo-PiPassport&amp;amp;COM=RaspberryPiModelB+" rel="nofollow" style="text-decoration:underline;" target="_blank"&gt; Explore NFC &lt;/a&gt; board isn&amp;#39;t supplied by Farnell now is seems. Will this project work with any other NFC boards?&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=18168&amp;AppID=293&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Pi Passport: Step 2: Setting up NFC</title><link>https://community.element14.com/members-area/personalblogs/b/blog/posts/pi-passport-step-2-setting-up-nfc</link><pubDate>Thu, 29 Jan 2015 12:12:39 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:34fd4092-a924-4c51-9d61-c3aba4abbc14</guid><dc:creator>charlotte_godley</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;NOTE: the code used in this tutorial, as described in the text in bold, is now deprecated in the current release of nxppy. Anyone who wants to continue using this code, please download and install a copy from the &lt;a class="jive-link-external-small" href="https://github.com/svvitale/nxppy/releases" rel="nofollow ugc noopener" target="_blank"&gt;releases page&lt;/a&gt;, NOT pip. I will be updating the code to use version 1.2 in the next few weeks, but for now please refer to the readme file of the aforementioned github repo if you would like to update your own code to use the new version.&lt;/p&gt;&lt;p&gt;Cheers!&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=18168&amp;AppID=293&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Pi Passport: Step 2: Setting up NFC</title><link>https://community.element14.com/members-area/personalblogs/b/blog/posts/pi-passport-step-2-setting-up-nfc</link><pubDate>Wed, 17 Sep 2014 18:31:32 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:34fd4092-a924-4c51-9d61-c3aba4abbc14</guid><dc:creator>e14 Contributor</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Dear friends.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am&amp;nbsp; write a C library using SPI communication for interface the Board NFC EXPLORE PN512 with a micocrontroller 8 bit, 16 bit or 32 bit. This because lot off pleople dont has Raspeberry or prefere use this Board with another MCU, like in my case.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;After one week working in this projects I can manager the NFC EXPLORE register, for exemaple write and read the FIFO BUFFER, clear the configuration, transmitte data to RF anntena.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now I need any help to solve the last problem that is: Cannot send data to MIFARE card to read the UID or other data that is store in the card EEPROM.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Below is my code:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;// THIS LINES OF CODE CONFIGURE THE DEVICE TO ENABLE RF ANTENA AND&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; EXPLORE_NFC_PN512_ControlReg(0x05); &lt;/p&gt;&lt;p&gt;&amp;nbsp; EXPLORE_NFC_PN512_TxAutoReg();&lt;/p&gt;&lt;p&gt;&amp;nbsp; EXPLORE_NFC_PN512_RxThresholdReg();&lt;/p&gt;&lt;p&gt;&amp;nbsp; EXPLORE_NFC_PN512_RFCfgReg();&lt;/p&gt;&lt;p&gt;&amp;nbsp; EXPLORE_NFC_PN512_GsNOnReg();&lt;/p&gt;&lt;p&gt;&amp;nbsp; EXPLORE_NFC_PN512_TxControlReg();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; // CLEAR THE FIFO BUFFER BEFORE&amp;nbsp; WRITE THE COMMAND DO BE SEND TO RF &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; EXPLORE_NFC_PN512_Clear_Fifo_Buffer();&lt;/p&gt;&lt;p&gt;&amp;nbsp; EXPLORE_NFC_PN512_WRITE_MB_INTO_FIFO_BUFFER(0x26);&amp;nbsp; // value write 0x26h command do quest card &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;// NOW SEND THE FIFO CONTENT TO ANNTENA AND WAIT FOR MIFARE CARD RESPONSE&lt;/p&gt;&lt;p&gt;// IN THIS PARTICULAR CASE I WAITING FOR 04h 00h &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; EXPLORE_NFC_PN512_Start_Send();&lt;/p&gt;&lt;p&gt; EXPLORE_NFC_PN512_Transmit(); &lt;/p&gt;&lt;p&gt; EXPLORE_NFC_PN512_Transceive();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _delay_cycles (50000);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nBytes=EXPLORE_NFC_PN512_GetFifoLevel(); // Get FiFo level&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; _delay_cycles (50000);&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=18168&amp;AppID=293&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>