|
1 | | -# What is it? |
2 | | -This is .NET project which lets you use libnfc (https://code.google.com/p/libnfc/) from .NET code in OOP way. |
3 | | - |
4 | | -# How to use it? |
5 | | -You must install libnfc on your computer and then you will be able to use this library (only Linux so far). |
6 | | - |
7 | | -This is the code I used to download sources of libnfc and compile it on Raspberry PI running Arch Linux. |
8 | | - |
9 | | - wget https://libnfc.googlecode.com/files/libnfc-1.7.0.tar.bz2 |
10 | | - tar xvjf libnfc-1.7.0.tar.bz2 |
11 | | - |
12 | | - cd libnfc-1.7.0 |
13 | | - ./configure --prefix=/usr |
14 | | - make |
15 | | - make install |
16 | | - cd .. |
17 | | - |
18 | | - wget https://alioth.debian.org/frs/download.php/file/3991/pcsc-lite-1.8.11.tar.bz2 |
19 | | - tar xvjf pcsc-lite-1.8.11.tar.bz2 |
20 | | - cd pcsc-lite-1.8.11 |
21 | | - ./configure --disable-libudev --enable-libusb |
22 | | - make |
23 | | - make install |
24 | | - cd .. |
25 | | - |
26 | | - On recent Linux kernel (>= 3.1) you need to prevent modprobe from autoload pn533 and nfc modules. |
27 | | - To do that, create /etc/modprobe.d/blacklist-libnfc.conf with this content: |
28 | | - blacklist pn533 |
29 | | - blacklist nfc |
| 1 | +[Libnfc .NET wrapper](https://github.com/episage/typescript-es7-boilerplate) |
| 2 | +==================== |
| 3 | + |
| 4 | +This is .NET project which lets you use libnfc [NFC Tools](http://nfc-tools.org/index.php?title=Libnfc) from .NET (C#, F#, etc). |
| 5 | + |
| 6 | + |
| 7 | +Requirements |
| 8 | +--------------------- |
| 9 | + |
| 10 | +- Linux |
| 11 | +- Mono |
| 12 | + |
| 13 | +Installation |
| 14 | +--------------------- |
| 15 | + |
| 16 | +In this particular case I used: |
| 17 | + |
| 18 | +- Raspberry PI |
| 19 | +- Arch Linux |
| 20 | + |
| 21 | + |
| 22 | +Below is the code I use to download sources of libnfc, compile and install them. |
| 23 | + |
| 24 | +```bash |
| 25 | +wget https://libnfc.googlecode.com/files/libnfc-1.7.0.tar.bz2 |
| 26 | +tar xvjf libnfc-1.7.0.tar.bz2 |
| 27 | + |
| 28 | +cd libnfc-1.7.0 |
| 29 | +./configure --prefix=/usr |
| 30 | +make |
| 31 | +make install |
| 32 | +cd .. |
| 33 | + |
| 34 | +wget https://alioth.debian.org/frs/download.php/file/3991/pcsc-lite-1.8.11.tar.bz2 |
| 35 | +tar xvjf pcsc-lite-1.8.11.tar.bz2 |
| 36 | +cd pcsc-lite-1.8.11 |
| 37 | +./configure --disable-libudev --enable-libusb |
| 38 | +make |
| 39 | +make install |
| 40 | +cd .. |
| 41 | +``` |
| 42 | + |
| 43 | +On recent Linux kernel (>= 3.1) you need to prevent modprobe from autoload pn533 and nfc modules. |
| 44 | +To do that, create `/etc/modprobe.d/blacklist-libnfc.conf` with this content: |
| 45 | + |
| 46 | +```text |
| 47 | +blacklist pn533 |
| 48 | +blacklist nfc |
| 49 | +``` |
| 50 | + |
| 51 | + |
| 52 | +Usage |
| 53 | +--------------------- |
| 54 | + |
| 55 | +Attach this project to your solution and reference it. |
| 56 | + |
| 57 | + |
| 58 | +Contributions |
| 59 | +--------------------- |
| 60 | + |
| 61 | +Please contribute to this project |
| 62 | + |
| 63 | +- update libnfc and other dependencies in the bash script above |
| 64 | +- make sure that the .NET unmanaged code is compatible with current libnfc |
0 commit comments