I am having trouble with configuring the serial communication of raspberry Pi 3 with Raspbian Jessie OS.
I want to connect my UHF RFID READER to my raspberry pi 3.
This UHF RFID reader has already built in DB9 having the pins 5V,GND,RX and TX.
My wiring is
TX to RX RX to TX GND to GND 5V to 5V
My code is
import serial port = serial.Serial("/dev/ttyAMA0", baudrate=9600, timeout=0.2) while True: rcv = port.readline() if len(rcv) > 10: print "Tag Detected: " + rcv