Sunday, 23 October 2011

cyberJack RFID comfort and Hibiscus in 11.10 64-bit

Well, this was not easy with 11.04 and it seems that Reiner, the manufacturer of the card reader cyberJack RFID comfort, could have been more supportable on its website. I tell you later why.

Somehow I managed it in 11.04 to bring the card reader online. But don't ask me how. I used the 11.04 64-bit driver of the Reiner website. First it didn't work, then sometimes and in the end everything was fine.

Since there is no offical 11.10 driver available yet I tried the old 11.04 driver for 11.10. After installation plus adding me into the group cyberjack manually I got with
cyberjack
the already well-known error message
BEGIN: ermittle Distribution (0/5)
END : ermittle Distribution (1/5) [OK]
BEGIN: ermittle Systeminformationen (1/5)
END : ermittle Systeminformationen (2/5) [OK]
BEGIN: ermittle Gruppeninformation (2/5)
END : ermittle Gruppeninformation (3/5) [OK]
BEGIN: ermittle laufende Dienste (3/5)
END : ermittle laufende Dienste (4/5) [OK]
BEGIN: ermittle und teste angeschlossene Leser (4/5)
SCardListReader: Cannot find a smart card reader. (8010002E)
Error in enumReaders: -5
END : ermittle und teste angeschlossene Leser (5/5) [ERROR]
To get my Tasque working proberly again, I mentioned the problem here, I reinstalled Xubuntu. Additional searching next to the offical Reiner forum, I found an interesting thread at ubuntuusers.de. Have a look. A guy asked Reiner for additional support and got an unofficial driver for 11.04! It is named libifd-cyberjack6_3.99.6rc4_amd64_u1104.deb instead of the last official driver libifd-cyberjack6_3.99.5final.SP02_amd64_u1104.deb. And you won't believe it! After my fresh reinstallation I did just following: Installing, group adding, rebooting, WORKING!!! So should look now your result of the cyberjack command:
BEGIN: ermittle Distribution (0/5)
END : ermittle Distribution (1/5) [OK]
BEGIN: ermittle Systeminformationen (1/5)
END : ermittle Systeminformationen (2/5) [OK]
BEGIN: ermittle Gruppeninformation (2/5)
END : ermittle Gruppeninformation (3/5) [OK]
BEGIN: ermittle laufende Dienste (3/5)
END : ermittle laufende Dienste (4/5) [OK]
BEGIN: ermittle und teste angeschlossene Leser (4/5)
END : ermittle und teste angeschlossene Leser (5/5) [OK]
Here the direct download link of the unofficial driver: libifd-cyberjack6_3.99.6rc4_amd64_u1104.deb

@Reiner: Please let the Linux community know if you have additional drivers next to your official website available!!!

So far, so good. Now to the second part. My banking programm used to be Hibiscus. But for working with cyberJack RFID comfort there is a additional wrapper necessary. There are two versions available at the moment. Version 0.2-1 named libpcsc-ctapi-wrapper0_0.2-1_i386.deb as a already packaged file and version 0.3 named pcsc-ctapi-wrapper-0.3.tar.gz as a file for compiling.

I tried version 0.2-1 with
dpkg --force-architecture -i libpcsc-ctapi-wrapper0_0.2-1_i386.deb
but resolving the dependencies didn't work out for me.

So use version 0.3 and compile it by your own. Extract pcsc-ctapi-wrapper-0.3.tar.gz and type into the console
make
It won't work from the start. I got this error message:
~/Downloads/pcsc-ctapi-wrapper-0.3$ sudo make
gcc -O2 -Wall -I /usr/include/PCSC/ -c -fPIC pcsc-ctapi-wrapper.c
pcsc-ctapi-wrapper.c:31:48: schwerwiegender Fehler: wintypes.h: Datei oder Verzeichnis nicht gefunden
Kompilierung beendet.
make: *** [pcsc-ctapi-wrapper.o] Fehler 1
So install the missing package libpcsclite-dev via console or Synaptic Package Manager.

Now again
~/Downloads/pcsc-ctapi-wrapper-0.3$ sudo make
gcc -O2 -Wall -I /usr/include/PCSC/ -c -fPIC pcsc-ctapi-wrapper.c
gcc -O2 -Wall -I /usr/include/PCSC/ -shared -o libpcsc-ctapi-wrapper.so.0.3 -Wl,-soname="libpcsc-ctapi-wrapper.so" pcsc-ctapi-wrapper.o -lpcsclite
sudo make install
gcc -O2 -Wall -I /usr/include/PCSC/ -shared -o libpcsc-ctapi-wrapper.so.0.3 -Wl,-soname="libpcsc-ctapi-wrapper.so" pcsc-ctapi-wrapper.o -lpcsclite
cp libpcsc-ctapi-wrapper.so.0.3 /usr/local/lib
ldconfig
That looks far better. Now start Hibiscus and set the path for the wrapper to /usr/local/lib/libpcsc-ctapi-wrapper.so.0.3.

1 comment:

  1. Dankeschön für die gute Anleitung. War für mich sehr hilfreich um den Kartenleser in Betrieb zu nehmen.

    ReplyDelete