A front-end for the Phidgets Inc. RFID kit
PydgetRFID consists of a D-Bus service that allows other applications (written in any language with D-Bus bindings) to use the hardware. It allows to start and stop reading, and emits a signal whenever a new tag is read. A simple graphical user interface (built with PyGTK) which uses this daemon is also provided.
First, you have to start the D-Bus daemon. Before doing so, make sure the reader’s USB cable is plugged into an available USB port on your machine. If you just want to see which tags are read, you can start the GUI.
To run the D-Bus daemon:
To run the GUI:
If you are connecting your own application to the daemon, you have to first call the start_reading method. It starts a loop which keeps reading RFID tags, until stop_reading is called. To do something when a new tag is read, connect your own callback function to the signal tag_changed_signal.
A Python example of using the daemon to do just this is available in examples/client.py. Note that to use signals and callbacks, you need a main loop (e.g. the one provided by GLib).
The current stable version is 0.1.1.
The latest bleeding edge version is available in a Bazaar repository.
To get the code, use: