If you’ve browsed our git repository recently, you probably saw a new project called ACR120. A few months back I bought an ACR120U RFID reader/writer to try and find out what kind of data was stored on my student ID, and maybe.. you know.. make a copy of it for safe keeping. Anyway, it can read ISO14443 compliant cards like ever so popular MiFare Classic card, but the Linux support is pretty iffy out of the box. There’s a driver at least, so I started writing a SWIG wrapper and a high level python interface to the device. My ACR120 is locked up in storage until September — but if anyone else has one and wants to hack on it, by all means, check out the source and send me any questions you have.
EDIT: I’ve moved the ACR120 git repo to http://anomos.info/~john/




Thanks, I’ll give it a try!
Dear John,
I got your page yesterday when i got an ACR120 device. Needless to say, the code worked like a charm. My kudos to all the effort you have put in.
Are you still working on the same? Would love to know your latest experiments.
Regards,
varun
Umm, I am getting a lot of errors when running build.sh Have installed the latest version of swig.
Am pasting a small part of the error output below. Anyone has any idea what i should do ?
./build.sh
SWIG:1: Warning(125): Use of the include path to find the input file is deprecated and will not work with ccache. Please include the path when specifying the input file.
./SWIG/acrlib_wrap.c:125:20: error: Python.h: No such file or directory
./SWIG/acrlib_wrap.c:756: error: expected ‘)’ before ‘*’ token
./SWIG/acrlib_wrap.c:780: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./SWIG/acrlib_wrap.c:806: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./SWIG/acrlib_wrap.c:860: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./SWIG/acrlib_wrap.c:881: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./SWIG/acrlib_wrap.c: In function ‘SWIG_Python_AddErrorMsg’:
./SWIG/acrlib_wrap.c:928: error: ‘PyObject’ undeclared (first use in this function)
./SWIG/acrlib_wrap.c:928: error: (Each undeclared identifier is reported only once
./SWIG/acrlib_wrap.c:928: error: for each function it appears in.)
./SWIG/acrlib_wrap.c:928: error: ‘type’ undeclared (first use in this function)
./SWIG/acrlib_wrap.c:929: error: ‘value’ undeclared (first use in this function)
./SWIG/acrlib_wrap.c:930: error: ‘traceback’ undeclared (first use in this function)
./SWIG/acrlib_wrap.c:935: error: ‘old_str’ undeclared (first use in this function)
./SWIG/acrlib_wrap.c:939: warning: assignment makes pointer from integer without a cast
./SWIG/acrlib_wrap.c:944: error: ‘PyExc_RuntimeError’ undeclared (first use in this function)
Amitabh: You need to install the python-dev package or make sure that Python.h is in your include path