Hi I would like to know if I can use a Raspberry PI 5 to communicate to a SparkFun Simultaneous RFID Reader - M6E Nano , I need to write a python script to read a tag and I see that the chip used is a ThingMagic chip and I was wondering if it is the possible to communicate to it via the [Mercury API]GitHub - gotthardp/python-mercuryapi: Python wrapper for the ThingMagic Mercury API) or UHF HAT Library ://github.com/sbcshop/UHF-HAT-for-RaspberryPi-Software. How would I interface (Hardware wise<) with the RPi , I would prefer not to use USB and rather straight serial, any feedback will be appreciated. If anyone knows of a library or any sources that relates to this topic it will be greatly appreciated. Kind regards Niel
It looks like the first one you linked appears very easy if you DO want to use USB python-mercuryapi/test.py at master · gotthardp/python-mercuryapi · GitHub (you’d need a serial breakout like this SparkFun Serial Basic Breakout - CH340C and USB-C - DEV-15096 - SparkFun Electronics - note that you cannot use an FTDI version). And then wire it over USB to the Pi and load that test script after putting some header pins on it Simultaneous RFID Tag Reader Hookup Guide - SparkFun Learn
Or write a python script that simply accepts/sends serial to/from 2 of the Pi’s GPIO pins (after enabling SPI in Pi config) and wire them to the M6E’s TX/RX pins
have a look at RFID Reader M6E Nano on Raspberry Pi via USB?. YOu need to install the Mercury library, which works good on an Raspberry Pi. In de examples you can see how to select a serial port on the Raspberry PI. the gotthard python is a wrapper around the mercury API.