Click here to Skip to main content
14,667,289 members
Rate this:
Please Sign up or sign in to 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

Rate this:
Please Sign up or sign in to vote.

Solution 1

   
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100