libnfc库
2022/7/23 6:23:00
本文主要是介绍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
这篇关于libnfc库的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-05-09flutter3.x_macos桌面os实战
- 2024-05-09Rust中的并发性:Sync 和 Send Traits
- 2024-05-08使用Ollama和OpenWebUI在CPU上玩转Meta Llama3-8B
- 2024-05-08完工标准(DoD)与验收条件(AC)究竟有什么不同?
- 2024-05-084万 star 的 NocoDB 在 sealos 上一键起,轻松把数据库编程智能表格
- 2024-05-08Mac 版Stable Diffusion WebUI的安装
- 2024-05-08解锁CodeGeeX智能问答中3项独有的隐藏技能
- 2024-05-08RAG算法优化+新增代码仓库支持,CodeGeeX的@repo功能效果提升
- 2024-05-08代码报错不用愁,CodeGeeX一键完成代码修复、错误解释的功能上线了!
- 2024-05-08今天开始程序员不用再发愁写commit message了,全部由CodeGeeX自动完成!