libnfc库
*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2015 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* Additional contributors:
* See AUTHORS file
-*
General Information
libnfc is a library which allows userspace application access to NFC devices.
The official web site is: http://www.nfc-tools.org/
The official forum site is: http://www.libnfc.org/community/
The official development site is: https://github.com/nfc-tools/libnfc
Important note: this file covers POSIX systems, for Windows please read README-Windows.md
Requirements
Some NFC drivers depend on third party software:
-
pn53x_usb & acr122_usb:
- libusb-0.1 http://libusb.sf.net
-
acr122_pcsc:
- pcsc-lite https://pcsclite.apdu.fr/
-
pcsc:
- Support build with pcsc driver, which can be using all compatible readers, Feitian R502 and bR500 already passed the test.
The regression test suite depends on the cutter framework: http://cutter.sf.net
Building
Note: If working directly from a git clone of the repository, some of the files need to be generated first. To do this run autoreconf -vis
Alternatively use a .tar.bz2 version of a packaged release (which already contains ./configure): https://github.com/nfc-tools/libnfc/releases/
The build should be as simple as running these commands:
./configure
make
To build with specific driver(s), see option --with-drivers=...
detailed in ./configure --help
.
Installation
make install
You may need to grant permissions to your user to drive your device. Under GNU/Linux systems, if you use udev, you could use the provided udev rules. e.g. under Debian, Ubuntu, etc.
sudo cp contrib/udev/93-pn53x.rules /lib/udev/rules.d/
Under FreeBSD, if you use devd, there is also a rules file: contrib/devd/pn53x.conf.
https://hub.fastgit.xyz/nfc-tools/libnfc
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 在鹅厂做java开发是什么体验
· 百万级群聊的设计实践
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战
· 永远不要相信用户的输入:从 SQL 注入攻防看输入验证的重要性
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
2020-07-23 【工作提升】好员工秘诀十二条
2020-07-23 【工作提升】怎么样做工作才有好的效果
2020-07-23 vim删除空行和注释
2019-07-23 go语言读写文件