Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/324.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 使用MFRC522和RPi发布读取RFID标签_Python_Raspberry Pi - Fatal编程技术网

Python 使用MFRC522和RPi发布读取RFID标签

Python 使用MFRC522和RPi发布读取RFID标签,python,raspberry-pi,Python,Raspberry Pi,我正在使用RPI3B+和MFRC522读卡器。当我运行以下代码时: 在终端中,我得到了无尽的“卡检测”行(第55行) 这似乎是下一个条件: # Get the UID of the card (status,uid) = MIFAREReader.MFRC522_Anticoll() # If we have the UID, continue if status == MIFAREReader.MI_OK: 永远不会过去。你知道有什么问题吗?(卡和读卡器100%兼容) 这可能是时钟问题吗

我正在使用RPI3B+和MFRC522读卡器。当我运行以下代码时:

在终端中,我得到了无尽的“卡检测”行(第55行)

这似乎是下一个条件:

# Get the UID of the card
(status,uid) = MIFAREReader.MFRC522_Anticoll()

# If we have the UID, continue
if status == MIFAREReader.MI_OK:
永远不会过去。你知道有什么问题吗?(卡和读卡器100%兼容)


这可能是时钟问题吗?如何解决这个问题?

这是一个可怕的硬件问题。我不明白它是如何检测到一张卡片的,但没有读,我试着用另一个读卡器,它成功了。抱歉给你添麻烦了