Skip to content

episage/sharp-nfc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • Linux
  • Mono
  • installed libnfc

Installation

In this particular case I used:

  • Raspberry PI
  • Arch Linux

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

  • update libnfc and other dependencies in the bash script above
  • make sure that the .NET unmanaged code is compatible with current libnfc

About

.NET wrapper for libnfc project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages