Easy set-up of NFC on Raspberry Pi

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Easy set-up of NFC on Raspberry Pi

Easy set-up of NFC on Raspberry Pi

This document describes step-by-step how to run NFC on Raspberry Pi platform.

Hardware setup:

You need:

   - Raspberry Pi (any model) : https://www.raspberrypi.org/products/:

 pastedImage_9.jpg

 

   - OM5578(PN7150 demokit) in RPi configuration (or OM5577(PN7120 demokit)

pastedImage_1.jpg      pastedImage_11.jpg

 

Then simply assemble boards together, stacking OM5578RPI (or OM5577RPI) to Raspberry Pi expansion connector:

    pastedImage_4.jpg

 

Software setup:

 

Use Raspbian  (https://www.raspberrypi.org/software/operating-systems/) or any other Linux distribution (guidelines to set up Linux environment on raspberry pi: https://www.raspberrypi.org/documentation/installation/installing-images/).

Step by step procedure:

  • Enable i2c support:

       On Raspbian:

  1. Run "sudo raspi-config"

  2. Use the down arrow to select "5 Interfacing Options"

  3. Arrow down to "P5 I2C"

  4. Select "yes" when it asks you to enable I2C

  5. Also select "yes" if it asks about automatically loading the kernel module

  6. Use the right arrow to select the <Finish> button

  7. Select "yes" when it asks to reboot

    pastedImage_34.png

      The system will reboot. when it comes back up, log in and enter the following command "ls /dev/*i2c*".

      The Pi should respond with "/dev/i2c-1" which represents the user-mode I2C interface.

 

  • Install necessary tools:

        On Raspbian execute the command:

   sudo apt-get install autoconf automake libtool git

  • Clone Linux libnfc-nci library repository:

        Execute the command:

   git clone https://github.com/NXPNFCLinux/linux_libnfc-nci.git

  • Configure the library:

        Execute the commands:

   cd linux_libnfc-nci

   ./bootstrap

   ./configure --enable-alt

  • Build and install the library:

        Execute the commands:

   make

      sudo make install

   export LD_LIBRARY_PATH=/usr/local/lib

  • Run demo application (built and installed together with the library during previous step):

        To simply display all data collected from remote NFC device (Peer, reader/writer or card), run the demo application in poll mode executing the command:

   nfcDemoApp poll

pastedImage_73.png

        For more details about the demo application modes execute command:

   nfcDemoApp --help

 

One step further:

  • Set environment variable to reference library installation:

        Execute command:

export LD_LIBRARY_PATH=/usr/local/lib

        You may wan't to make this setting permanent by adding it to your .bashrc file for instance :

echo "export LD_LIBRARY_PATH=/usr/local/lib" >> .bashrc

  • Write your own application:

        Several simple examples demonstrating use of the linux_libnfc-nci library for different use cases (Reader, Peer to peer, Host Card Emulation) are given as reference: https://github.com/NXPNFCLinux/linux_libnfc-nci_examples

       - Simply clone the repository

   git clone https://github.com/NXPNFCLinux/linux_libnfc-nci_examples.git

       - Browse to the targeted example:

   cd linux_libnfc-nci_examples/xxx_example

       - Build the example:

   make

       - Run the example

   ./xxx_example

 

Additional information:

  • Another Platform ?

       Using UDOO NEO (with OM5577 or OM5578 in Arduino configuration) ?

          -> Follow step-by-step procedure, just updating src/halimpl/pn54x/tml/i2c/phTmlNfc_alt.h file to set CONFIGURATION flag to value 2, before building the library

       Using BeagleBone Black (with OM5577 or OM5578 in BBB configuration) ?

          -> Follow step-by-step procedure, just updating src/halimpl/pn54x/tml/i2c/phTmlNfc_alt.h file to set CONFIGURATION flag to value 2, before building the library

       Using other Linux platform or others OM5578/OM5577 demokits configuration ?

          -> Follow step-by-step procedure, just updating src/halimpl/pn54x/tml/i2c/phTmlNfc_alt.h file to set CONFIGURATION flag to value 0 and defining I2C_BUS, PIN_INT and PIN_ENABLE flags according to the HW connection, before building the library

Labels (1)
%3CLINGO-SUB%20id%3D%22lingo-sub-1099034%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EEasy%20set-up%20of%20NFC%20on%20Raspberry%20Pi%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1099034%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CFONT%20size%3D%224%22%3EThis%20document%20describes%20step-by-step%20how%20to%20run%20NFC%20on%20Raspberry%20Pi%20platform.%3C%2FFONT%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1436515630%22%20id%3D%22toc-hId--500119989%22%3E%3CFONT%20size%3D%225%22%3EHardware%20setup%3A%3C%2FFONT%3E%3C%2FH2%3E%0A%3CH4%20id%3D%22toc-hId-1752061781%22%20id%3D%22toc-hId--1606509874%22%3E%3CSTRONG%3EYou%20need%3A%3C%2FSTRONG%3E%3C%2FH4%3E%0A%3CP%3E%3CFONT%20size%3D%223%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B-%20Raspberry%20Pi%20(any%20model)%26nbsp%3B%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.raspberrypi.org%2Fproducts%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fwww.raspberrypi.org%2Fproducts%2F%3A%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%20style%3D%22text-align%3A%20center%3B%22%20style%3D%22text-align%3A%20center%3B%22%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pastedImage_9.jpg%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_9.jpg%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F104979i3616CEE3C02783CD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pastedImage_9.jpg%22%20alt%3D%22pastedImage_9.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CFONT%20size%3D%223%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B-%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fproducts%2Fidentification-and-security%2Fnfc%2Fnfc-reader-ics%2Fdevelopment-kits-for-pn7150-plugn-play-nfc-controller%3AOM5578%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EOM5578(PN7150%20demokit)%3C%2FA%3E%20in%20RPi%20configuration%20(or%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fproducts%2Fidentification-and-security%2Fnfc%2Fnfc-reader-ics%2Fdevelopment-kits-for-pn7120-plugn-play-nfc-controller%3AOM5577%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EOM5577(PN7120%20demokit)%3C%2FA%3E%3C%2FFONT%3E%3CLI-EMOJI%20id%3D%22lia_disappointed-face%22%20title%3D%22%3Adisappointed_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%20style%3D%22text-align%3A%20center%3B%22%20style%3D%22text-align%3A%20center%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pastedImage_1.jpg%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_1.jpg%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F104980i7292D6BE90761001%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pastedImage_1.jpg%22%20alt%3D%22pastedImage_1.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pastedImage_11.jpg%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_11.jpg%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F61762iC1CBAF1336EAC399%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pastedImage_11.jpg%22%20alt%3D%22pastedImage_11.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSTRONG%3EThen%20simply%20assemble%20boards%20together%2C%20stacking%20OM5578RPI%20(or%20OM5577RPI)%20to%20Raspberry%20Pi%20expansion%20connector%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%20style%3D%22text-align%3A%20center%3B%22%20style%3D%22text-align%3A%20center%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pastedImage_4.jpg%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_4.jpg%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F61765i70A14667683B1B21%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pastedImage_4.jpg%22%20alt%3D%22pastedImage_4.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--756457260%22%20id%3D%22toc-hId-179938381%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId-1731055573%22%20id%3D%22toc-hId--1627516082%22%3ESoftware%20setup%3A%3C%2FH2%3E%0A%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3EUse%20Raspbian%26nbsp%3B%20(%3CA%20class%3D%22link-titled%22%20title%3D%22https%3A%2F%2Fwww.raspberrypi.org%2Fsoftware%2Foperating-systems%2F%22%20href%3D%22https%3A%2F%2Fwww.raspberrypi.org%2Fsoftware%2Foperating-systems%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fwww.raspberrypi.org%2Fsoftware%2Foperating-systems%2F%3C%2FA%3E)%20or%20any%20other%20Linux%20distribution%20(guidelines%20to%20set%20up%20Linux%20environment%20on%20raspberry%20pi%3A%20%3CA%20class%3D%22link-titled%22%20title%3D%22https%3A%2F%2Fwww.raspberrypi.org%2Fdocumentation%2Finstallation%2Finstalling-images%2F%22%20href%3D%22https%3A%2F%2Fwww.raspberrypi.org%2Fdocumentation%2Finstallation%2Finstalling-images%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fwww.raspberrypi.org%2Fdocumentation%2Finstallation%2Finstalling-images%2F%3C%2FA%3E).%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1873350249%22%20id%3D%22toc-hId--936954608%22%3EStep%20by%20step%20procedure%3A%3C%2FH3%3E%0A%3CUL%3E%0A%3CLI%3E%0A%3CH6%20id%3D%22toc-hId--481724197%22%20id%3D%22toc-hId-454671444%22%3E%3CSTRONG%3E%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%22%3EEnable%20i2c%20support%3A%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FH6%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20On%20Raspbian%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%20style%3D%22margin-left%3A%202em%3B%22%3E%0A%3COL%3E%0A%3CLI%3E%0A%3CP%3ERun%20%3CSPAN%20style%3D%22font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%20font-size%3A%2015px%3B%22%3E%22sudo%20raspi-config%22%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012.0pt%3B%22%3EUse%20the%20down%20arrow%20to%20select%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%20font-size%3A%2015px%3B%22%3E%225%20Interfacing%20Options%22%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012.0pt%3B%22%3EArrow%20down%20to%20%3CSPAN%20style%3D%22font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%20font-size%3A%2015px%3B%22%3E%22%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-size%3A%2015px%3B%20font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3EP5%20I2C%22%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012.0pt%3B%22%3ESelect%20%3CSPAN%20style%3D%22font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%20font-size%3A%2015px%3B%22%3E%22%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-size%3A%2015px%3B%20font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3Eyes%22%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22font-size%3A%2012.0pt%3B%22%3Ewhen%20it%20asks%20you%20to%20enable%20I2C%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012.0pt%3B%22%3EAlso%20select%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22font-size%3A%2012.0pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%20font-size%3A%2015px%3B%22%3E%22%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-size%3A%2015px%3B%20font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3Eyes%22%3C%2FSPAN%3E%20if%20it%20asks%20about%20automatically%20loading%20the%20kernel%20module%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012.0pt%3B%22%3EUse%20the%20right%20arrow%20to%20select%20the%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22font-size%3A%2015px%3B%20font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3E%3CFINISH%3E%3C%2FFINISH%3E%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22font-size%3A%2012.0pt%3B%22%3Ebutton%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%22%3E%3CSPAN%20style%3D%22font-size%3A%2012.0pt%3B%22%3ESelect%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22font-size%3A%2012.0pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%20font-size%3A%2015px%3B%22%3E%22%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-size%3A%2015px%3B%20font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3Eyes%22%3C%2FSPAN%3E%20when%20it%20asks%20to%20reboot%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CSPAN%20style%3D%22font-size%3A%2012.0pt%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pastedImage_34.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_34.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F104981i138EBEE866041EB1%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pastedImage_34.png%22%20alt%3D%22pastedImage_34.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FDIV%3E%0A%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-size%3A%2012.0pt%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20The%20system%20will%20reboot.%20when%20it%20comes%20back%20up%2C%20log%20in%20and%20enter%20the%20following%20command%20%3CSPAN%20style%3D%22font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%20font-size%3A%2015px%3B%22%3E%22%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-size%3A%2015px%3B%20font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3Els%20%2Fdev%2F*i2c*%22.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012.0pt%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20The%20Pi%20should%20respond%20with%20%3CSPAN%20style%3D%22font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%20font-size%3A%2015px%3B%22%3E%22%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-size%3A%2015px%3B%20font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3E%2Fdev%2Fi2c-1%22%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22font-size%3A%2012.0pt%3B%22%3Ewhich%20represents%20the%20user-mode%20I2C%20interface.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CUL%3E%0A%3CLI%3E%0A%3CH6%20id%3D%22toc-hId-2005788636%22%20id%3D%22toc-hId--1352783019%22%3E%3CSTRONG%3E%3CFONT%20size%3D%223%22%3EInstall%20necessary%20tools%3A%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FH6%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%22%3EOn%20Raspbian%3C%2FSPAN%3E%20execute%20the%20command%3A%3C%2FP%3E%0A%3CBLOCKQUOTE%20class%3D%22jive_macro_quote%20jive-quote%20jive_text_macro%22%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22font-size%3A%2015px%3B%20font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3Esudo%20apt-get%20install%20autoconf%20automake%20libtool%20git%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CUL%3E%0A%3CLI%3E%0A%3CH6%20id%3D%22toc-hId-198334173%22%20id%3D%22toc-hId-1134729814%22%3E%3CSTRONG%3E%3CFONT%20size%3D%223%22%3EClone%20Linux%20libnfc-nci%20library%20repository%3A%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FH6%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%22%3EE%3C%2FSPAN%3Execute%20the%20command%3A%3C%2FP%3E%0A%3CBLOCKQUOTE%20class%3D%22jive_macro_quote%20jive-quote%20jive_text_macro%22%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%20font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3Bgit%20clone%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FNXPNFCLinux%2Flinux_libnfc-nci.git%22%20target%3D%22test_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FNXPNFCLinux%2Flinux_libnfc-nci.git%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CUL%3E%0A%3CLI%3E%0A%3CH6%20id%3D%22toc-hId--1609120290%22%20id%3D%22toc-hId--672724649%22%3E%3CSTRONG%3E%3CFONT%20size%3D%223%22%3EConfigure%20the%20library%3A%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FH6%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%22%3EE%3C%2FSPAN%3Execute%20the%20commands%3A%3C%2FP%3E%0A%3CBLOCKQUOTE%20class%3D%22jive_macro_quote%20jive-quote%20jive_text_macro%22%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2015px%3B%20font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%22%3Ecd%20linux_libnfc-nci%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%20font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B.%2Fbootstrap%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2015px%3B%20font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B.%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%20font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3E%2Fconfigure%20--enable-alt%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CUL%3E%0A%3CLI%3E%0A%3CH6%20id%3D%22toc-hId-878392543%22%20id%3D%22toc-hId-1814788184%22%3E%3CSTRONG%3E%3CFONT%20size%3D%223%22%3EBuild%20and%20install%20the%20library%3A%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FH6%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%22%3EE%3C%2FSPAN%3Execute%20the%20commands%3A%3C%2FP%3E%0A%3CBLOCKQUOTE%20class%3D%22jive_macro_quote%20jive-quote%20jive_text_macro%22%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2015px%3B%20font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3E%26nbsp%3B%26nbsp%3B%20%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%22%3Emake%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%20font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3Esudo%20make%20install%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%20font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3E%26nbsp%3B%26nbsp%3B%20export%20LD_LIBRARY_PATH%3D%2Fusr%2Flocal%2Flib%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3E%3CFONT%20size%3D%223%22%3ERun%20demo%20application%20(built%20and%20installed%20together%20with%20the%20library%20during%20previous%20step)%3A%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CFONT%20size%3D%223%22%3E%3CSPAN%20style%3D%22font-size%3A%2015px%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FSPAN%3E%3C%2FFONT%3E%3CSPAN%20style%3D%22font-size%3A%2015px%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3ETo%20simply%20display%20all%20data%20collected%20from%20remote%20NFC%20device%20(Peer%2C%20reader%2Fwriter%20or%20card)%2C%20run%20the%20demo%20application%20in%20poll%20mode%20executing%20the%20command%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBLOCKQUOTE%20class%3D%22jive_macro_quote%20jive-quote%20jive_text_macro%22%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%20font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3BnfcDemoApp%20poll%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pastedImage_73.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_73.png%22%20style%3D%22width%3A%20510px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F104982i1278D0BB27DBDFAC%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_73.png%22%20alt%3D%22pastedImage_73.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2015px%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CFONT%20size%3D%223%22%3EFor%20m%3C%2FFONT%3E%3C%2FSPAN%3E%3CFONT%20size%3D%223%22%3Eore%20details%20about%20the%20demo%20application%20modes%20execute%20command%3C%2FFONT%3E%3A%3C%2FP%3E%0A%3CBLOCKQUOTE%20class%3D%22jive_macro_quote%20jive-quote%20jive_text_macro%22%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3BnfcDemoApp%20--help%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-size%3A%2015px%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CBR%20%2F%3E%0A%3CH2%20id%3D%22toc-hId--657421337%22%20id%3D%22toc-hId-278974304%22%3EOne%20step%20further%3A%3C%2FH2%3E%0A%3CUL%3E%0A%3CLI%3E%0A%3CH3%20id%3D%22toc-hId-1959174215%22%20id%3D%22toc-hId--1399397440%22%3E%3CSTRONG%3E%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%22%3ESet%20environment%20variable%20to%20reference%20library%20installation%3A%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Execute%20command%3A%3C%2FP%3E%0A%3CBLOCKQUOTE%20class%3D%22jive_macro_quote%20jive-quote%20jive_text_macro%22%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2015px%3B%20font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3Eexport%20LD_LIBRARY_PATH%3D%2Fusr%2Flocal%2Flib%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20You%20may%20wan't%20to%20make%20this%20setting%20permanent%20by%20adding%20it%20to%20your%20.bashrc%20file%20for%20instance%20%3A%3C%2FP%3E%0A%3CBLOCKQUOTE%20class%3D%22jive_macro_quote%20jive-quote%20jive_text_macro%22%3E%0A%3CP%3Eecho%20%22export%20LD_LIBRARY_PATH%3D%2Fusr%2Flocal%2Flib%22%20%26gt%3B%26gt%3B%20.bashrc%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CUL%3E%0A%3CLI%3E%0A%3CH3%20id%3D%22toc-hId-151719752%22%20id%3D%22toc-hId-1088115393%22%3E%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%22%3EWrite%20your%20own%20application%3A%3C%2FSPAN%3E%3C%2FH3%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CFONT%20size%3D%223%22%3E%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Several%20simple%20examples%20demonstrating%20use%20of%20the%20linux_libnfc-nci%20library%20for%20different%20use%20cases%20(Reader%2C%20Peer%20to%20peer%2C%20Host%20Card%20Emulation)%20are%20given%20as%20reference%3A%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FNXPNFCLinux%2Flinux_libnfc-nci_examples%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FNXPNFCLinux%2Flinux_libnfc-nci_examples%3C%2FA%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%223%22%3E%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-%3C%2FSPAN%3E%20Simply%20clone%20the%20repository%3C%2FFONT%3E%3C%2FP%3E%0A%3CBLOCKQUOTE%20class%3D%22jive_macro_quote%20jive-quote%20jive_text_macro%22%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3Bgit%20clone%20%3CA%20class%3D%22unlinked%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fgithub.com%2FNXPNFCLinux%2Flinux_libnfc-nci_examples.git%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-%20Browse%20to%20the%20targeted%20example%3A%3C%2FP%3E%0A%3CBLOCKQUOTE%20class%3D%22jive_macro_quote%20jive-quote%20jive_text_macro%22%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3Bcd%20linux_libnfc-nci_examples%2F%3CSTRONG%3Exxx%3C%2FSTRONG%3E_example%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-%20Build%20the%20example%3A%3C%2FP%3E%0A%3CBLOCKQUOTE%20class%3D%22jive_macro_quote%20jive-quote%20jive_text_macro%22%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3E%26nbsp%3B%26nbsp%3B%20make%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-%20Run%20the%20example%3C%2FP%3E%0A%3CBLOCKQUOTE%20class%3D%22jive_macro_quote%20jive-quote%20jive_text_macro%22%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2015px%3B%20font-family%3A%20courier%20new%2C%20courier%2C%20monospace%3B%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B.%2F%3CSTRONG%3Exxx%3C%2FSTRONG%3E_example%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1784817430%22%20id%3D%22toc-hId--848421789%22%3EAdditional%20information%3A%3C%2FH2%3E%0A%3CUL%3E%0A%3CLI%3E%0A%3CH3%20id%3D%22toc-hId-831778122%22%20id%3D%22toc-hId-1768173763%22%3E%3CFONT%20size%3D%223%22%3EAnother%20Platform%20%3F%3C%2FFONT%3E%3C%2FH3%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Using%20%3CA%20href%3D%22https%3A%2F%2Fwww.udoo.org%2Fudoo-neo%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EUDOO%20NEO%26nbsp%3B%3C%2FA%3E(with%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fproducts%2Fidentification-and-security%2Fnfc%2Fnfc-reader-ics%2Fdevelopment-kits-for-pn7120-plugn-play-nfc-controller%3AOM5577%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EOM5577%3C%2FA%3E%20or%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fproducts%2Fidentification-and-security%2Fnfc%2Fnfc-reader-ics%2Fdevelopment-kits-for-pn7150-plugn-play-nfc-controller%3AOM5578%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EOM5578%3C%2FA%3E%20in%20Arduino%20configuration)%20%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-%26gt%3B%20Follow%20step-by-step%20procedure%2C%20just%20updating%20src%2Fhalimpl%2Fpn54x%2Ftml%2Fi2c%2FphTmlNfc_alt.h%20file%20to%20set%20CONFIGURATION%20flag%20to%20value%202%2C%20before%20building%20the%20library%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Using%20%3CA%20href%3D%22https%3A%2F%2Fbeagleboard.org%2Fblack%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EBeagleBone%20Black%26nbsp%3B%3C%2FA%3E(with%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fproducts%2Fidentification-and-security%2Fnfc%2Fnfc-reader-ics%2Fdevelopment-kits-for-pn7120-plugn-play-nfc-controller%3AOM5577%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EOM5577%3C%2FA%3E%20or%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fproducts%2Fidentification-and-security%2Fnfc%2Fnfc-reader-ics%2Fdevelopment-kits-for-pn7150-plugn-play-nfc-controller%3AOM5578%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EOM5578%3C%2FA%3E%20in%20BBB%20configuration)%20%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-%26gt%3B%20Follow%20step-by-step%20procedure%2C%20just%20updating%20src%2Fhalimpl%2Fpn54x%2Ftml%2Fi2c%2FphTmlNfc_alt.h%20file%20to%20set%20CONFIGURATION%20flag%20to%20value%202%2C%20before%20building%20the%20library%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Using%20other%20Linux%20platform%20or%20others%20OM5578%2FOM5577%20demokits%20configuration%20%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-%26gt%3B%20Follow%20step-by-step%20procedure%2C%20just%20updating%20src%2Fhalimpl%2Fpn54x%2Ftml%2Fi2c%2FphTmlNfc_alt.h%20file%20to%20set%20CONFIGURATION%20flag%20to%20value%200%20and%20defining%20I2C_BUS%2C%20PIN_INT%20and%20PIN_ENABLE%20flags%20according%20to%20the%20HW%20connection%2C%20before%20building%20the%20library%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%0A%3CH3%20id%3D%22toc-hId--975676341%22%20id%3D%22toc-hId--39280700%22%3E%3CFONT%20size%3D%223%22%3ERunning%20Android%20%3F%3C%2FFONT%3E%3C%2FH3%3E%0A-%26gt%3B%20Follow%20guidelines%20provided%20in%20the%20related%20documentation%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN11690.pdf%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN11690.pdf%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1099034%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EMobile%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎09-02-2021 12:39 AM
Updated by: