Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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() 
Posted
Updated 12-Jun-18 22:41pm

1 solution

 
Share this answer
 
Comments
pathak nitin 13-Jun-18 23:53pm    
sir i have a sample code for reading uhf rfid reader tag using python 2.7 these code is not working properly
Richard MacCutchan 14-Jun-18 3:50am    
Then you need to do some debugging to find out why. No one here has your configuration so it is impossible to guess what is happening on your system.
pathak nitin 16-Jun-18 13:21pm    
thank you sir for give a response

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900