I've previously used the RDM6300 with the Raspberry Pi 1 and it worked flawlessly. After switching to the Raspberry Pi 3 it won't read RFID tags anymore.
I'm certain I've connected everything correctly and the module is running. I've also edited config.txt (added enable_uart = 1
) and cmdline.txt (removed console=serial0,115200
).
The python script I use looks as follows:
#!/usr/bin/python
# coding=utf-8
import serial
# This is where I read the RFID tag
def read_rfid():
ser = serial.Serial("/dev/ttyAMA0")
ser.baudrate = 9600
daten = ser.read(14)
ser.close()
daten = daten.replace("\x02", "" )
daten = daten.replace("\x03", "" )
return daten
id = read_rfid()
print id
That's all I needed to get the script working on my old Pi 1. What changed from Pi 1 to Pi 3? What additional changes do I have to make?