We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProcessing DevelopmentLibraries,  Tool Development › New library: touchatag RFID readers on Processing
Page Index Toggle Pages: 1
New library: touchatag RFID readers on Processing (Read 8094 times)
New library: touchatag RFID readers on Processing
Mar 28th, 2010, 5:01am
 
Developed a library for Processing that allows users to connect and read from cheap touchatag RFID readers on the Windows platform.

This library affords the simultaneously connection of multiple readers, and up to three tags on each one (due to performance issues of the tags themselves on the touchatag reader). This project was tested on Windows 7 Professional and Windows XP SP3, with Processing 1.0.9.

You can download it here. For this library to work, users only need to install the Windows CCID PCSC driver, the touchatag software client isn't necessary. For more information head to the library's page on Google code.

Example:
Code:
import touchatag.*;
Touchatag rfid;

// Defines the maximum number of touchatag
// readers that might be connected to the computer
int numOfReaders = 3;

// This library affords up to three touchatag
// tags on each of the touchatag readers
String[][] tags = new String[numOfReaders][3];

void setup() {
 // Optionally, if only one touchatag reader will
 // be used: rfid = new Touchatag(this)
 rfid = new Touchatag(this, numOfReaders);
}

void draw() {
 // Gets the number of touchatag readers connected
 int readers = rfid.On();
 
 if (readers != 0) {
    // Gets the tags for each of the touchatag readers
    for (int i = 0; i < readers; i++) {
tags[i] = rfid.tagsOnReader(i);
println(tags[i]);
    }  
  }
}
Re: New library: touchatag RFID readers on Processing
Reply #1 - Mar 28th, 2010, 5:29am
 
thats pretty nice. i made some little projects using arduino and an rfid receiver. but this seems much easier. I will definitely use it for the next rfid project
Re: New library: touchatag RFID readers on Processing
Reply #2 - Apr 1st, 2010, 3:23pm
 
If anyone has any advice on extra functionality just let me know Smiley
Re: New library: touchatag RFID readers on Processing
Reply #3 - May 2nd, 2010, 2:49pm
 
I now wish i had purchased touchatag instead of violets mir:ror I cant seem to get it to properly work on Mac OS.

Would you guys recommend Touchatag over any other "consumer" reader?

Re: New library: touchatag RFID readers on Processing
Reply #4 - Jun 2nd, 2010, 9:28am
 
.hj barraza wrote on May 2nd, 2010, 2:49pm:
I now wish i had purchased touchatag instead of violets mir:ror I cant seem to get it to properly work on Mac OS.

Would you guys recommend Touchatag over any other "consumer" reader



I've only worked with the touchatag readers, but they are cheap and reliable enough Smiley
Re: New library: touchatag RFID readers on Processing
Reply #5 - Jun 14th, 2010, 1:25pm
 
I thinks it's really great that you made a library so we don't have to rely on the crapy software provided.

One thing though... I can't get it working. I am new to programming but I would really like to get this thing working.

**
Sorry for my previous post. I'm there now, it just took me a little while.
I can open the example code now, but when I try to run it I get this error:

java.lang.NullPointerException
     at processing.app.debug.Compiler.contentsToClassPath(Unknown Source)
     at processing.app.Sketch.preprocess(Unknown Source)
     at processing.app.Sketch.preprocess(Unknown Source)
     at processing.app.Sketch.build(Unknown Source)
     at processing.app.Sketch.build(Unknown Source)
     at processing.app.Editor$DefaultRunHandler.run(Unknown Source)
     at java.lang.Thread.run(Thread.java:619)

What am I doing wrong this time.

Thanks for any help in advance.
**

Ps I tried starting a new topic, but I coun't find the touchatag chapter in the forum.
Re: New library: touchatag RFID readers on Processing
Reply #6 - Jun 18th, 2010, 4:34am
 
UndeadIwag, are you running the library in Windows? Do you get that error in the example provided?
Page Index Toggle Pages: 1