如何使用Python 2.7阅读uhf rfid阅读器标签 [英] How to read uhf rfid reader tag using Python 2.7
本文介绍了如何使用Python 2.7阅读uhf rfid阅读器标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我购买了uhf rfid阅读器并将其连接到raspberry pi 3模块并使用python读取标签但是它不是读取标签我有一个代码用于使用python读取rfid标签请帮助我。
我尝试了什么:
i我正在做这些但是它不起作用< br $> b $ b
iam purchase the uhf rfid reader and connected it to the raspberry pi 3 module and reading the tag using python but it is not read tag i have a code for reading the the rfid tag using the python please help me.
What I have tried:
i am doing these but it is not work
import serial
import time
serial=serial.Serial("/dev/ttyUSB0", baudrate=2400)
while True:
if serial.inWaiting()>0:
read_result=serial.read(12)
print("Read card {0}",format(read_result.decode("utf-8","replace")))
print("Sleeping 2 sec")
time.sleep(2)
serial.flushInput()
推荐答案
参见 https://www.codeproject.com/Questions/1248191/How-to-uhf-rfid-reader-connect-with-raspberry-pi [ ^ ]
这篇关于如何使用Python 2.7阅读uhf rfid阅读器标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文