0

When I plug my Parallax RFID USB reader into usb port on Windows and scan a tag, I get 0004268206 But when I follow every's tutorials on reading RFID tags with this reader on a Raspberry Pi using python I get a totally different number. How can I get what I read via USB in Windows?

import serial
ser = serial.Serial('/dev/ttyUSB0', 2400) 
while True:
    try:
        response = ser.read(12)
        print str(response)
    except KeyboardInterrupt:
        break

ser.close()

I get 2010E

Any ideas?

swg1cor14
  • 1,682
  • 6
  • 25
  • 46

0 Answers0