I have a TTL RFID Reader with 3 wires (12V, GND and TXD)
I have one USB to ttl converter and one Raspberry pi 3
I have done connections as follow:
RFID USB-TO-TTL
GND-----GND
TXD------RXD
Given an external 12V power supply to the RFID reader.
When I do the above connections and plug in the usb end of the usb-to-ttl converter into the Raspberry pi, when i give the command
Code: Select all
lsusbCode: Select all
Bus 001 Device 006: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial PortCode: Select all
ls -ltr /dev|grep -i ttyUSBCode: Select all
crw-rw---- 1 root dialout 188, 0 Feb 3 16:47 ttyUSB0Now I use the following python code to try and read a RFID card
Code: Select all
from time import sleep
import serial
ser = serial.Serial('/dev/ttyUSB0', 115200)
while True:
print ser.read(12)
No data
I also tried different baud rates. But in vain.
What could be the problem?