问题描述
我想在Ubuntu 14 smarty中使用我的ACR122U非接触式智能卡读取器.因此,我安装了必需的软件包和驱动程序.
I want to use my ACR122U contact-less smart card reader in Ubuntu 14 smarty. So I installed my required packages and drivers.
最后,当我想使用阅读器时,出现以下错误:
Finally when I want to use the reader I receive the following error:
rc@rc-System-Product-Name:~/Desktop/itsme$ sudo nfc-list
[sudo] password for rc:
nfc-list uses libnfc 1.7.0
error libnfc.driver.acr122_usb Unable to claim USB interface (Device or resource busy)
nfc-list: ERROR: Unable to open NFC device: acr122_usb:001:020
rc@rc-System-Product-Name:~/Desktop/itsme$
rc@rc-System-Product-Name:~/Desktop/itsme$ sudo mfoc -O output.txt
error libnfc.driver.acr122_usb Unable to claim USB interface (Device or resource busy)
No NFC device found.
rc@rc-System-Product-Name:~/Desktop/itsme$
似乎我的读者正在使用内核工具.我搜了很多.很多人已经遇到了同样的问题,但是我在他们当中找不到答案.
It seems that my reader is in use with a kernel tool. I searched a lot. there are a lot of people that had the same issue already, but I couldn't find my answer among them.
有人知道我如何解决此问题吗? (例如,通过回收设备)
Does anybody has any idea how I can resolve this problem? (By reclaiming the device, for example)
推荐答案
如果您的内核版本> 3.5,由于pn533
驱动程序的自动加载,nfs-list
和pcscd
将报告此错误.
If you have kernel version > 3.5, nfs-list
and pcscd
will report this error due to the automatic load of pn533
driver.
要读取pcscd
dameon输出,可以使用以下命令运行它:pcscd -f -d
To read the pcscd
dameon output you can run it using: pcscd -f -d
- 检查已安装的内核版本:
uname -a
-
黑名单
pn533
和nfc
驱动程序(参考: Arch Linux Wiki Touchatag RFID读者, nfc-tools论坛):
- 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
添加以下几行:
blacklist pn533
blacklist nfc
禁用内核模块:
Disable kernel modules:
$ modprobe -r pn533 nfc
重新启动pcscd
守护程序:sudo service pcscd restart
Restart the pcscd
daemon: sudo service pcscd restart
在这里您可以完善一个小程序来测试您的ACR122U阅读器和更详细的指南.
这篇关于无法声明USB接口(设备或资源繁忙)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!