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