python - 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+ 上一切正常。现在我正在寻找解决此问题的解决方案。
解决方案
推荐阅读
- java - REST 保证的 JSON 输出
- lua - 尝试查找玩家的 playergui 组件时尝试索引 nil 错误
- reactjs - React-如何将状态从一个组件传递到另一个组件
- android - Google Play 商店 - 是否必须在发布前报告中修复警告?
- python - Django:上传图像的困难
- python - 滚动条添加填充 tkinter
- tensorflow - 如何在随机数据实验中减少损失并提高准确性?
- angular - 在将文件保存到存储之后,如何处理与调用在 Firestore 上创建新对象的方法相关的错误情况?
- php - 如何从外部 json 文件中读取登录详细信息?
- keycloak - 在代理后面运行时 Keycloak 控制台链接断开