首页 > 解决方案 > NXP NFC 阅读器 PNEV512R 不适用于 Raspberry Pi 4

问题描述

NXP 的 NFC 读卡器 PNEV512R(https://www.nxp.com/products/rfid-nfc/nfc-hf/nfc-readers/explore-nfc-exclusive-from-element14:PNEV512R)不适用于我的新树莓派4.

核心:

Linux AlexPi 5.4.51-v7l+ #1333 SMP Mon Aug 10 16:51:40 BST 2020 armv7l GNU/Linux

发布:

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"  
NAME="Raspbian GNU/Linux" VERSION_ID="10" 
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

为了安装所需的软件,我遵循了本手册:https
://github.com/svvitale/nxppy 安装没有任何失败。但即使是 Mifare 的实例化也会引发异常。

蟒蛇代码:

import nxppy
mifare=nxppy.Mifare()

例外:

nxppy.InitError: Nxppy: Unknown Error from Undefined Component

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
      File "nfc.py", line 3, in <module>
            mifare=nxppy.Mifare()
    SystemError: <class 'nxppy.Mifare'> returned a result with an error set

SPI当然是打开的。^^ 我用 loopbacktest 测试了接口:https
://elinux.org/RPi_SPI 所以 SPI 正在工作。在我的 Raspbarry Pi 3B+ 上一切正常。现在我正在寻找解决此问题的解决方案。

标签: pythonraspberry-pinfcspimifare

解决方案


推荐阅读