HOWTO: Omnikey Cardman 5321 + Intrepid + rfidiot
preface:
so ya, ubuntu has the pcscd package but it isnt compiled with to use libusb, so if you're using a omnikey cardman 5321, you're out of luck. there is also the pcscd-omnikey package, but that didnt work all to excellent for me. so here's what i did to get it all working. Some steps may or may not be needed. if someone else can do it more efficiently, please let me know, and that would be helpful
Install Prerequisite packages:
------------------------------------------------
Code:
sudo apt-get install build-essential python python-dev swig libpcsclite-dev python-crypto libusb-dev libusb
install pyscard:
------------------------------------------------
Download from: http://pyscard.sourceforge.net/
Code:
tar -zxvf pyscard-1.6.7.tar.gz
cd pyscard-1.6.7/
sudo python setup.py build_ext install
NOTE: If this doesnt compile, you may have to install some other python libs
install pyserial:
------------------------------------------------
Download from: http://pyserial.wiki.sourceforge.net/pySerial (http://pypi.python.org/pypi/pyserial)
Code:
tar -zxvf pyserial-2.4.tar.gz
cd pyserial-2.4/
sudo python setup.py build_ext install
NOTE: above may not be needed
Install pcsc-lite:
------------------------------------------------
download from: https://alioth.debian.org/frs/?group_id=30105
Code:
wget https://alioth.debian.org/frs/download.php/2708/pcsc-lite-1.5.1.tar.bz2
tar -jxvf pcsc-lite-1.5.1.tar.bz2
cd pcsc-lite-1.5.1
./configure --enable-libusb --enable-extendedapdu --disable-libhal --enable-usbdropdir=/usr/lib/pcsc/drivers --sysconfdir=/etc --prefix=/usr LDFLAGS="-lpthread"
make
sudo make install
Install Omnikey Driver:
------------------------------------------------
Download from: http://omnikey.aaitg.com/index.php?id=69
Select "Cardman RFID USB 5231" and "Linux"
Download: "CardMan 5x2x PC/SC for Linux 32Bit"
Code:
tar -zxvf ifdokrfid_lnx-2.6.0.tar.gz
cd ifdokrfid_lnx-2.6.0/
sudo ./install -p /usr/lib/pcsc/drivers
Note: Make sure the below file exists:
Code:
/usr/lib/pcsc/drivers/ifdokrfid_lnx-2.6.0.bundle/Contents/Linux/ifdokrfid.so
Start pcscd
-----------------------------------------------
Code:
sudo /usr/sbin/pcscd -f -a -d
In the output you should see:
Code:
00000000 pcscdaemon.c:267:main() pcscd set to foreground with debug send to stderr
00000089 debuglog.c:239:DebugLogSetLevel() debug level=debug
00000025 debuglog.c:268:DebugLogSetCategory() Debug options: APDU
00001262 pcscdaemon.c:505:main() pcsc-lite 1.5.1 daemon ready.
00558536 hotplug_libusb.c:477:HPAddHotPluggable() Adding USB device: 002:007
00000313 readerfactory.c:1083:RFInitializeReader() Attempting startup of OMNIKEY CardMan 5x21 00 00 using /usr/lib/pcsc/drivers/ifdokrfid_lnx-2.6.0.bundle/Contents/Linux/ifdokrfid.so
00000908 readerfactory.c:950:RFBindFunctions() Loading IFD Handler 3.0
OK OMNIKEY CardMan RFID IA32 v2.6.0 support@omnikey.com
Run RFIDIOt
-----------------------------------------------
Download from: http://rfidiot.org/
test with (in new window):
Bookmarks