- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我正在从事 Raspberry Pi 项目。我正在尝试安装 driver package适用于 ACR1251U-A1 NFC 标签。
这个包需要先安装pcsc-lite包。但是据我在互联网上搜索后了解到,pcsc-lite 1.8.13 不适用于 Raspbian OS。
我的主管坚持认为应该在 Raspberry Pi 上安装 pcsc-lite 1.8.13 以使 NFC 标签工作。
是否可以在 Raspbian 上安装它?如果是这样,你能帮我怎么做吗?
最佳答案
我能够安装 pcscd
守护进程并使用 pcsc-lite
wrapper in NodeJS在 Raspbian(Linux raspberrypi 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux
)上使用 Raspberry Pi B+ 和 Raspberry Pi 2。
此处是来自 full guide of mine project on GitHub 的要求安装 的摘录:
Install PC/SC and libnfc (references: nfc-tools, libnfc):
sudo apt-get install pcscd libusb-dev libpcsclite1 libpcsclite-dev dh-autoreconf
cd /opt/
sudo wget https://github.com/nfc-tools/libnfc/archive/libnfc-1.7.1.zip
sudo unzip libnfc-1.7.1.zip
cd libnfc-libnfc-1.7.1/
sudo autoreconf -vis
sudo ./configure --with-drivers=all
sudo make
sudo make installAdditionaly, you may need to grant permissions to your user to drive the device. Under GNU/Linux systems, if you use
udev
, you could use the providedudev
rules. e.g. under Debian:sudo cp /opt/libnfc-libnfc-1.7.1/contrib/udev/42-pn53x.rules /lib/udev/rules.d/
Make sure the NFC reader is properly recognized:
sudo nfc-list
To fix:
error while loading shared libraries: libnfc.so.4: cannot open shared object file: No such file or directory
(reference)echo '/usr/local/lib' | sudo tee -a /etc/ld.so.conf.d/usr-local-lib.conf && sudo ldconfig
If you have kernel version > 3.5, probably
pcscd
and alsonfc-list
will report this error:Unable to claim USB interface (Device or resource busy)
due to the automatic load ofpn533
driver.To read the
pcscd
dameon output you can run it using:pcscd -f -d
- Check which kernel version is installed:
uname -a
Blacklist
pn533
andnfc
drivers (references: Arch Linux wiki Touchatag RFID Reader, nfc-tools forum):sudo nano /etc/modprobe.d/blacklist-libnfc.conf
Add the following lines:
blacklist pn533 blacklist nfc
Disable kernel modules:
modprobe -r pn533 nfc
Restart the
pcscd
daemon:sudo service pcscd restart
关于linux - 是否可以在 Raspbian 操作系统上安装 pcsc-lite 1.8.13?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29834202/
我需要一个适用于 Linux 的软件模拟器 PC/SC 阅读器,但找不到。 我唯一找到的是 http://vsmartcard.sourceforge.net/ .但是这个库需要手机来模拟PC/SC设
在Windows中我们有函数SCardListCards 但是我正在 Linux 下使用 pcsclite 进行编程,如何在这里列出卡片? 卡牌名称、属性? 最佳答案 这只是对具有已知智能卡 ATR
我正在开发 C# Java Card(智能卡)程序,我正在尝试利用 PCSC-sharp github 上的库。 这是我的请求的“短/tl;dr”版本:PCSC-sharp 示例涵盖了 Iso7816
我正在尝试读取卡 UID/HCE来 self 的 pcsc java 代码的 android 设备 UID。但我收到以下错误 javax.smartcardio.CardException: sun.
在 Windows >= XP 上使用 winscard 只有一个 PCSC 阅读器的句柄和上下文,是否有某种方法可以获取其设备实例 ID 或可以在 中使用的其他内容SetupDi* API,用于找出
有人可以解释两者之间的区别/关系吗? 现在我正在使用 GPSShell + globalplatform + pcsclite 来操作支持 NFC 的卡。从我的角度来看(我对 libnfc 了解不多)
如果读卡器中没有卡,我在获取 PCSC 读卡器序列号时遇到问题。我正在使用winscard.dll 和c++。 以下代码仅适用于读卡器中存在卡的情况。否则,不会检索 SCardHandle。我还没有找
我正在使用 PCSC-lite v1.6.4 开发基于智能卡的应用程序。我需要一种方法来检测一旦智能卡从读卡器中取出,然后检测插入读卡器,以便智能卡将被强制再次完成特定过程。 如果可能,是否有任何基于
我有带有 SAM 插槽(安全访问模块)的 acr1281 读卡器。我可以使用 python 库通过 pc/sc 与卡通信 smartcard 。但我想向插入读卡器的 SAM 发送命令。 如何为此“切换
我已经成功地构建了一个程序,可以在 Linux 上使用 Qt 读取 Mifare 1K 卡。所以现在,我希望它能在 Windows 上运行。据我所知,Windows 上没有 PCSC-Lite 端口,
我一直在使用 pcsc-sharp 库开发一个小型智能卡扫描仪应用程序。该应用程序作为控制台应用程序运行时工作正常,代码如下: using System; using System.Colle
我正在尝试使用 PCSC 框架读取卡片。但它根本不返回任何内容。 import java.util.List; import javax.smartcardio.*; public class Blo
有没有人有将 pcsc-lite/ccid 移植到 Android 的经验?我不需要从应用程序层访问智能卡/读卡器,只需从 shell 即可。所以,只要我能让 pcscd 守护程序运行,就可以了。 我
问题:使用 JavaScript 将 APDU 从网页发送到 PCSC 阅读器。 我没有太多声誉来评论 question所以我要问新问题。 我已经尝试/搜索了专家提供的大部分解决方案。 questio
我有来自 Ingenico 的智能卡读卡器,试图让它在 Ubuntu 12.4 上运行。 64位 我已经安装了 pcsc lite 和 libusb 以及读卡器驱动程序SCL01x 非接触式读卡器 -
我正在从事 Raspberry Pi 项目。我正在尝试安装 driver package适用于 ACR1251U-A1 NFC 标签。 这个包需要先安装pcsc-lite包。但是据我在互联网上搜索后了
我目前正在从事一个项目,该项目要求我将 JavaCard 应用程序小程序 (.cap) 文件加载到 JavaCard。我们的框架是基于 Visual C++ 和 PCSC 的,因此我们需要将同一个小程
我有多个没有唯一序列号的 ACR122T 智能卡设备(来自 ACS)。我需要从 pcsc-lite 中知道我连接到哪个物理智能卡。我通过使用 lsusb 知道物理设备在哪个 USB 端口上,但是如何使
我们目前正在使用此设置: 硬件: phyFlex i.MX6 (Fsl ARM) 板。 液晶显示器 PR533 USB 评估板(ccid 兼容) 软件: yocto poky/oe 1.7,当前 di
我是一名优秀的程序员,十分优秀!