Hi, I have an RFID breakout board and ID-12LA module.
I am trying to connect to a board running Circuit Python, using UART.
I get serial output (and wired an LED to the read pin which confirms reading a tag), but when I try to convert ‘bytearray’ to string using:
data_string = ''.join([chr(b) for b in data])
print(data_string, end="")
I get:
?ÌÌæææÌù2*>*ÊÖò
And if I don’t convert, I get:
b’?\xcc\xcc\xe6\xe6\xe6\xcc\xf92*>*\xca\xd6\xf2\x00’
How should I be converting the data coming in?
I’ve changed baud rates, and the output remains the same.
This type of garbage usually occurs due to baud rate mismatch. I mean, you define one baud rate in your code but select another in the serial monitor. Make sure that you’re following this hookup guide meticulously:
https://learn.sparkfun.com/tutorials/sp … 1641299999
If nothing works, perhaps you need a replacement.
Yeah I looked at that, played around with RealTerm and tried all the baud rates… and I am still getting odd caracters.
Any idea what the encoding is on the raw data coming from the RFID reader?
I actually looked for the datasheet and saw it’s manchester 64bit.
So I have tried using Arduino and CircuitPython, on boards running ESP32, and an SAMD chip… and nothing works to get proper ASCII output.
I have 2 breakout boards with 2 ID-12LA modules and tried both, with the same results…