Linux install LIBNFC, open serial PN532

Source: Internet
Author: User






Hardware preparation:



USB to serial port



4-Pin DuPont Line



PN532 Module



IC card (such as access card, rice card, etc.)






Software Preparation:



Ubuntu Physics Machine One set



Access to the Internet






1, connect PN532 with USB to serial port, put an IC card close to PN532 module.





2, install LIBNFC:


[email protected]:~$ sudo apt-get install libusb-dev    
[email protected]:~$ wget https://github.com/nfc-tools/libnfc/releases/download/libnfc-1.7.1/libnfc-1.7.1.tar.bz2
[email protected]:~$ tar xf libnfc-1.7.1.tar.bz2 
[email protected]:~$ cd libnfc-1.7.1/
[email protected]:~/libnfc-1.7.1$ ./configure --prefix=${HOME}/NFC && make && make install
[email protected]:~/libnfc-1.7.1$ mkdir -p ${HOME}/NFC/etc/nfc/
[email protected]:~/libnfc-1.7.1$ vim ${HOME}/NFC/etc/nfc/libnfc.conf
device.name = "microBuilder.eu"
device.connstring = "pn532_uart:/dev/ttyUSB0"
[email protected]:~/libnfc-1.7.1$










3, check the Pn532 and host connection status:


[email protected]:~/libnfc-1.7.1$ sudo ${HOME}/NFC/bin/nfc-list
/home/chunli/NFC/bin/nfc-list uses libnfc 1.7.1
NFC device: pn532_uart:/dev/ttyUSB0 opened
1 ISO14443A passive target(s) found:
ISO/IEC 14443A (106 kbps) target:
    ATQA (SENS_RES): 00  04  
       UID (NFCID1): 7e  d5  92  90  
      SAK (SEL_RES): 08  
[email protected]:~/libnfc-1.7.1$








The driver is installed.












This article is from the "Li Chunli" blog, make sure to keep this source http://990487026.blog.51cto.com/10133282/1958895



Linux install LIBNFC, open serial PN532


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.