NFC读卡器工具

测试过了,完美支持我的读卡器ACR122U NFC 非接触式IC卡读写器USB,我的MiFare Ultralight卡片。


The release 1.20 of SpringCard PC/SC SDK is now available in the Download section of the website (direct link to latest version :http://www.springcard.com/download/find.php?file=pcsc-sdk).

People working in the ‘emerging’ NFC field will be glad to discover the updated versions ofNFCTool, a .NET based application (written in C#) that makes it easy to create or to readNFC Tags compliant with the SmartPoster specification (as published by NFC Forum). Command-linenfc_create utility is also very useful to encode batches of NFC Tags.

The Desfire support library (pcsc_desfire.dll on Windows) has been upgraded; it now fully supports all the new features ofNXP Desfire EV1 smartcards: AES and Triple-DES with 3 keys (3KDES), ISO 7816-4 compliant directories and files, card-level configuration.NXP Mifare UltraLight C chips are supported easily thanks to a new library (pcsc_mifulc.dll). Also, we’ve added in the SDK theCalypso support library (pcsc_calypso.dll) and its related sample software. All those libraries come with C source code.

New command line utilities have also been written for the ones who want to master PC/SC from its very basis, or haveportability in mind. Most our C examples now run on Linux without any modification.

转载:

http://www.springcard.com/blog/tags/ndef/


其他资料:

ACR122U NFC 非接触式IC卡读写器/感应M1卡读卡器 USB
http://item.taobao.com/item.htm?id=10507056439

ACR122U NFC 非接触式智能卡读写器(附SAM卡槽)
ACR122U NFC Contactless Smart card reader
http://www.acs.com.hk/index.php?pid=product&id=ACR122U


### 关于NFC读卡器驱动下载与安装 #### 1. NFC读卡器驱动概述 NFC读卡器的驱动程序主要用于使计算机或其他设备能够识别并控制NFC硬件。常见的NFC读卡器如ACR122,其驱动程序通常基于Linux或Windows平台开发。对于Linux环境下的ACR122 USB NFC读卡器,可以利用libnfc库来完成驱动配置和编程工作[^4]。 --- #### 2. Linux环境下NFC读卡器驱动安装教程 以下是针对Linux系统的NFC读卡器(例如ACR122)驱动安装的具体方法: ##### (1)准备工具和依赖项 在开始之前,确保已安装必要的软件包: ```bash sudo apt-get update sudo apt-get install libusb-dev git make gcc ``` ##### (2)获取libnfc源码 `libnfc` 是一个开源项目,提供了对多种NFC设备的支持,包括ACR122。可以从GitHub仓库克隆最新版本: ```bash git clone https://github.com/nfc-tools/libnfc.git cd libnfc ``` ##### (3)编译和安装libnfc 执行以下命令以构建和安装 `libnfc` 库: ```bash ./configure --with-drivers=acr122_usb make sudo make install ``` 注意:如果目标设备并非ACR122,则需调整 `--with-drivers` 参数以匹配实际使用的NFC读卡器型号。 ##### (4)测试驱动是否正常运行 创建一个简单的脚本来检测NFC读卡器的状态: ```c #include <stdio.h> #include <stdlib.h> #include <nfc/nfc.h> int main() { nfc_context *context; nfc_init(&context); if (context == NULL) { printf("Unable to init libnfc\n"); exit(EXIT_FAILURE); } const size_t max_devices = 16; nfc_device_desc_t devices[max_devices]; size_t device_count = nfc_list_devices(context, devices, max_devices); if (device_count > 0) { printf("Found %zu NFC device(s):\n", device_count); for (size_t i = 0; i < device_count; ++i) { printf("[%zu] Name: %s Connstring: %s\n", i, devices[i].acName, devices[i].szConnString); } } else { printf("No NFC devices found.\n"); } nfc_exit(context); return EXIT_SUCCESS; } ``` 保存文件为 `test_nfc.c` 并编译: ```bash gcc test_nfc.c -o test_nfc -lnfc ``` 运行该程序以确认NFC读卡器已被成功识别: ```bash ./test_nfc ``` --- #### 3. Windows环境下NFC读卡器驱动安装教程 对于Windows系统,大多数厂商会提供专用的驱动程序包。以ACR122为例,具体步骤如下: ##### (1)访问官方网站 前往ACR122制造商ACS的安全网站,下载适用于当前操作系统的驱动程序和SDK工具包[^4]。 ##### (2)安装驱动程序 双击下载好的 `.exe` 文件按照提示逐步完成安装过程。完成后重启计算机以生效更改。 ##### (3)验证驱动状态 打开“设备管理器”,找到“通用串行总线控制器”类别下是否有新增加的条目表示ACR122设备已经就绪;如果没有发现任何异常情况则说明一切顺利。 --- #### 4. 技术参考资料推荐 除了官方文档外,还可以参考一些社区资源和技术博客了解更深入的内容。例如关于如何编写自定义应用程序接口(API),或者探索高级特性像加密通信等主题都可以借助互联网上的公开材料学习掌握更多技能[^3]。 ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值