RFID Processing
From On-signal: Projects & Research
This page is about the RFID libary for Processing (and Java in general). This libary allows you to read RFID tags from the SM132-USB module by SonMicro directly into your processing sketch.
Contents |
Download
Download a zip file from the downloads page:
The source code is in revision control at bitbucket (mercurial). To keep uptodate with the latest version, you can "clone" the source from the bitbucket:
hg clone http://bitbucket.org/arjan/onsignal-rfid/
Installation instructions
- Unzip/expand the package and copy the 'onsignal_rfid' folder into the 'Processing/libraries' folder.
- Restart Processing if currently open, and import the 'RFID Processing' library from the application's menu: 'Sketch -> Import Library -> onsignal_rfid'.
Version history
- 2009-08-11
- Fixed bugs in reading of single-digit bytes: padded with zero in the tag string. Note that this change is not backwards compatible!
- 2008-04-24
- Tested on Linux, and it works without modification. The reader shows up with /dev/ttyUSB0 as port name.
- 2008-02-04
- First release of the library. Currently tested on Windows and MacOS X.
Examples
There are two simple examples on the RFID Processing Examples page.
Reporting bugs / issues
See the bugtracking system at bitbucket: http://bitbucket.org/arjan/onsignal-rfid/issues/
What serial port?
The limitation of this library is that you should know the name of the serial port the RFID reader is connected to.
On Windows: Connect the reader. Then go to the device manager, and expand "Ports (COM & LPT)". This should list all serial ports. Probably, the port the reader is connected to shows up as a "USB Serial Port". The port name is showed after "USB serial port", called COM3, for instance.
On Mac: Connect the reader. Open the terminal, and type: ls /dev/tty.usbserial-*, and type enter. This shows the name of the connected reader, e.g. /dev/tty.usbserial-F92XM3NX.
On Linux: Connect the reader. Open a terminal, and type ls /dev/ttyUSB*, and type enter. This shows the name of the connected reader, e.g. /dev/ttyUSB0.
Documentation
Generated JavaDoc documentation can be found at the following url: http://www.on-signal.org/data/rfid_processing/doc/
Author
- Arjan Scherpenisse (contact me by e-mail: arjan at scherpenisse.net)
License
This library is distributed under the GNU General Public License version 2.

