【问题标题】:Is it possible to install pcsc-lite 1.8.13 on Raspbian OS?是否可以在 Raspbian OS 上安装 pcsc-lite 1.8.13?
【发布时间】:2015-04-23 20:58:45
【问题描述】:

我正在开发一个 Raspberry Pi 项目。我正在尝试为 ACR1251U-A1 NFC 标签安装 driver package

此软件包首先需要安装 pcsc-lite 软件包。但据我了解,在互联网上搜索后,pcsc-lite 1.8.13 不适用于 Raspbian OS。

我的主管坚持认为应该在 Raspberry Pi 上安装 pcsc-lite 1.8.13 以使 NFC 标签工作。

是否可以在 Raspbian 上安装它?如果是这样,你能帮我怎么做吗?

【问题讨论】:

    标签: linux debian raspberry-pi raspbian pcsc


    【解决方案1】:

    我能够使用 Raspberry Pi B+ 和 Raspberry Pi 2 在 Raspbian (Linux raspberrypi 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux) 上安装 pcscd 守护程序并使用 pcsc-lite wrapper in NodeJS

    这里是来自full guide of mine project on GitHubRequirements 安装的摘录:

    1. 安装 PC/SC 和 libnfc(参考:nfc-toolslibnfc):

      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 install
      

      此外,您可能需要授予用户驱动设备的权限。 在 GNU/Linux 系统下,如果你使用udev,你可以使用提供的udev 规则。 例如Debian下:sudo cp /opt/libnfc-libnfc-1.7.1/contrib/udev/42-pn53x.rules /lib/udev/rules.d/

    2. 确保正确识别 NFC 读取器:

      sudo nfc-list
      
      1. 修复: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
        
      2. 如果你的内核版本> 3.5,可能pcscdnfc-list 会报这个错误:Unable to claim USB interface (Device or resource busy) 由于pn533驱动的自动加载。

        要读取pcscd dameon 输出,您可以使用以下命令运行它:pcscd -f -d

        1. 检查安装了哪个内核版本:uname -a
        2. 黑名单pn533nfc司机(参考:Arch Linux wiki Touchatag RFID Readernfc-tools forum):

          sudo nano /etc/modprobe.d/blacklist-libnfc.conf
          

          添加以下行:

          黑名单pn533 NFC黑名单

        3. 禁用内核模块:

          modprobe -r pn533 nfc
          
        4. 重启pcscd守护进程:sudo service pcscd restart

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-26
      • 2015-06-21
      • 1970-01-01
      相关资源
      最近更新 更多