
libnfc 기반의 NFC 카드 조작을 위한 편의 API
libfreefare 프로젝트는 MIFARE 카드 조작을 위한 편리한 API를 제공합니다.
이 프로젝트는 _nfc-tools_의 일부이며, nfc-tools wiki에서 더 많은 정보를 찾을 수 있습니다.
libfreefare 또는 _nfc-tools_를 처음 접하는 경우, 프로젝트 웹사이트와 전용 포럼에서 유용한 정보를 수집해야 합니다.
| Tag | Status |
|---|---|
| FeliCa Lite | Supported |
| MIFARE Classic 1k | Supported |
| MIFARE Classic 4k | Supported |
| MIFARE DESFire 2k | Supported |
| MIFARE DESFire 4k | Supported |
| MIFARE DESFire 8k | Supported |
| MIFARE DESFire EV1 | Supported |
| MIFARE Mini | Supported |
| MIFARE Plus S 2k | Not supported |
| MIFARE Plus S 4k | Not supported |
| MIFARE Plus X 2k | Not supported |
| MIFARE Plus X 4k | Not supported |
| MIFARE Ultralight | Supported |
| MIFARE Ultralight C | Supported |
| NTAG21x | Supported |
| Specification | Status |
|---|---|
| Mifare Application Directory (MAD) v1 | Supported |
| Mifare Application Directory (MAD) v2 | Supported |
| Mifare Application Directory (MAD) v3 | Supported (part of Mifare DESFire support) |
릴리스 버전(Download 섹션 참조) 또는 개발 버전을 사용할 수 있습니다:
먼저 모든 종속성이 설치되어 있는지 확인하십시오:
apt-get install autoconf automake git libtool libssl-dev pkg-config
이 저장소를 클론하십시오:
git clone https://github.com/nfc-tools/libfreefare.git
cd libfreefare
컴파일하기 전에 다음을 실행해야 합니다:
autoreconf -vis
이제 일반적인 autotools 방식으로 libfreefare를 컴파일할 수 있습니다:
./configure --prefix=/usr
make
sudo make install
mingw64-cmake -DLIBNFC_INCLUDE_DIRS=/path/to/libnfc-source/include -DLIBNFC_LIBRARIES=/path/to/libnfc.dll
mingw64-make
gdb를 사용하여 디버그하려면 CFLAGS를 조정해야 합니다:
CFLAGS="-O0 -ggdb" ./configure --prefix=/usr
make clean all
그런 다음 저장소 루트에서 다음과 같은 명령을 사용하여 예제를 디버그할 수 있습니다:
./libtool --mode=execute gdb examples/mifare-classic-write-ndef
PCD와 PICC 간의 전송 추적만 확인하려면 --enable-debug 구성 플래그를 사용하면 됩니다:
./configure --enable-debug
make clean all