NXP NFC阅读器PNEV512R不适用于覆盆子Pi 4

2024-09-29 19:28:49 发布

您现在位置:Python中文网/ 问答频道 /正文

NXP的NFC读卡器PNEV512R(https://www.nxp.com/products/rfid-nfc/nfc-hf/nfc-readers/explore-nfc-exclusive-from-element14:PNEV512R)与我的新raspberry pi 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的实例化也会引发一个例外

Python代码:

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+上,一切正常。现在我正在寻找解决这个问题的方法


Tags: httpsorggnuspiidhttpurlversion

热门问题