episage / sharp-nfc

.NET wrapper for libnfc project
15 stars 13 forks source link

Libnfc .NET wrapper

This is .NET project which lets you use libnfc NFC Tools from .NET C# or F#.

Related projects

https://github.com/episage/SharpFreeFare - for reading MiFare cards (http://www.nxp.com/products/identification-and-security/mifare-ics/mifare-desfire:MC_53450)

Requirements

Installation

In this particular case I used:

Below is the code I use to download sources of libnfc, compile and install them.

wget https://github.com/nfc-tools/libnfc/releases/download/libnfc-1.7.1/libnfc-1.7.1.tar.bz2
tar xvjf libnfc-1.7.1.tar.bz2

cd libnfc-1.7.0
./configure --prefix=/usr
make
make install
cd ..

wget https://alioth.debian.org/frs/download.php/file/3991/pcsc-lite-1.8.11.tar.bz2
tar xvjf pcsc-lite-1.8.11.tar.bz2
cd pcsc-lite-1.8.11
./configure --disable-libudev --enable-libusb
make
make install
cd ..

On recent Linux kernel (>= 3.1) you need to prevent modprobe from autoload pn533 and nfc modules. To do that, create /etc/modprobe.d/blacklist-libnfc.conf with this content:

blacklist pn533
blacklist nfc

Usage

Attach this project to your solution and reference it.

Contributions

Please contribute to this project