Benutzer-Werkzeuge

Webseiten-Werkzeuge


support:list:kartenleser:kaanbase

Installationsanleitung für Kobil Kaan Base unter Gentoo (64Bit)

Vielen Dank an Stephan für die Anleitung

PC/SC und CCID installieren

$> emerge =pcsc-lite-1.4.2 =ccid-1.3.1

PC/SC testen

$> ls /usr/lib/*pcsc*
lrwxrwxrwx 1 root root    20  5. Jan 22:46 libpcsclite.so -> libpcsclite.so.1.0.0
lrwxrwxrwx 1 root root    20  5. Jan 22:46 libpcsclite.so.1 -> libpcsclite.so.1.0.0
-rwxr-xr-x 1 root root 47568  5. Jan 22:46 libpcsclite.so.1.0.0
$> xterm -e 'pcscd -f -a -d' &
pcscdaemon.c:297:main() pcscd set to foreground with debug send to stderr
debuglog.c:242:DebugLogSetCategory() Debug options: APDU
debuglog.c:213:DebugLogSetLevel() debug level=debug
pcscdaemon.c:500:main() pcsc-lite 1.4.2 daemon ready.
pcscdaemon.c:559:signal_reload() Reload serial configuration
hotplug_libusb.c:454:HPAddHotPluggable() Adding USB device: 002:006
readerfactory.c:1113:RFInitializeReader() Attempting startup of KOBIL KAAN Base (E_043100498) 00 00 using /usr/lib64/readers/usb/ifd-ccid.bundle/Contents/Linux/libccid.so.1.3.1
readerfactory.c:980:RFBindFunctions() Loading IFD Handler 3.0
ifdhandler.c:1239:init_driver() LogLevel: 0x0003
ifdhandler.c:1249:init_driver() DriverOptions: 0x0000
ifdhandler.c:77:IFDHCreateChannelByName() lun: 0, usb:0d46/3001:libusb:002:006
ccid_usb.c:233:OpenUSBByName() Manufacturer: Ludovic Rousseau (ludovic.rousseau@free.fr)
ccid_usb.c:243:OpenUSBByName() ProductString: Generic CCID driver v1.3.1
ccid_usb.c:249:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.
ccid_usb.c:397:OpenUSBByName() Found Vendor/Product: 0D46/3001 (KOBIL KAAN Base)
ccid_usb.c:399:OpenUSBByName() Using USB bus/device: 002/006
ccid_usb.c:759:get_data_rates() Wrong GET DATA RATES size: 1
ifdhandler.c:271:IFDHGetCapabilities() lun: 0, tag: 0xFAE
ifdhandler.c:313:IFDHGetCapabilities() Reader supports 1 slot(s)
pcscdaemon.c:571:signal_reload() End reload serial configuration
pcscdaemon.c:559:signal_reload() Reload serial configuration
pcscdaemon.c:571:signal_reload() End reload serial configuration
ifdhandler.c:841:IFDHPowerICC() lun: 0, action: PowerUp
eventhandler.c:431:EHStatusHandlerThread() Card inserted into KOBIL KAAN Base (E_043100498) 00 00
Card ATR: 3B FF 18 00 FF 81 31 3C 45 65 63 0D 02 31 02 50 00 10 90 55 70 00 04 10 0A

UDEV Rule modifizieren

/etc/udev/rules.d/60-pcscd_ccid.rules

# udev rules for pcscd and CCID readers
# If not adding the device, go away
ACTION!="add", GOTO="pcscd_ccid_rules_end"
# generic CCID device
SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="0b", RUN+="/usr/sbin/pcscd --hotplug"

# Kobil KAAN Base
BUS=="usb", SYSFS{idVendor}=="0d46", SYSFS{idProduct}=="3001", GROUP="usb", MODE="0664", RUN+="/usr/sbin/pcscd --hotplug"

# All done
LABEL="pcscd_ccid_rules_end"

USB für den Benutzer freigeben

$> adduser leinky usb

CT-API Kobil Bibliothek installieren

$> mkdir ~/kobil
$> cd ~/kobil
$> wget http://www.kobil.de/fileadmin/download/support/download/driver/ct-linux.zip
$> unzip ct-linux.zip
$> cd ct-linux64
$> file libct.so
libct.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), not stripped
$> ldd libct.so

  linux-vdso.so.1 ⇒  (0x00007fff907fe000)   libpthread.so.0 ⇒ /lib/libpthread.so.0 (0x00007ff288404000)   libdl.so.2 ⇒ /lib/libdl.so.2 (0x00007ff288200000)   libc.so.6 ⇒ /lib/libc.so.6 (0x00007ff287ec0000)   /lib64/ld-linux-x86-64.so.2 (0x00007ff2887e0000)

$> cp libct.so /lib64/.
$> chmod 755 libct.so

$> ls -lh /lib64/libct.so
-rwxr-xr-x 1 root root 184K 11. Aug 16:00 libct.so

CT-API konfigurieren

Folgende Datei in den Homebereich jedes Nutzers kopieren, der den Kartenleser nutzen möchte.

~/.CT_devices

GetPortType=#0
SetPortType=#0
DefaultPortType=#0
DefaultProtocollType=#0
UseOnlyDefaultProtocoll=#0
B1DTRLow=#50
B1DSRRespActive=#2000
PnPChar=#150
B1WaitForPnPString=#1500
KaanWaitForPnPString=#600
LogLevel=#0
LogfileName=~/ctapilog.log
Port1=PCSC;KOBIL KAAN Base (E_043100498) 00 00;3;0;KAAN Base USB over PCSC
UseOldStyleManufacturerDataObject=#0
AdaptInsertionPosition=#1
AdaptPIN2Block=#1

CT-API testen

$> ./cardping -b1
Going to call CT_init
CT_init (Port 1): 0
CT_Reset: 0
$> ./cardping -b1 20100101
Going to call CT_init
CT_init (Port 1): 0
CT_Reset: 0
CT_data Aufruf mit: 20 10 01 01
CT_data: 0
Antwort: 3B FF 18 00 FF 81 31 3C 45 65 63 0D 02 31 02 50 00 10 90 55 70 00 04 10 0A 90 01

Hibiscus installieren

$> cd ~
$> wget http://www.willuhn.de/projects/jameica/releases/1.7/jameica/jameica-linux-amd64.zip
$> unzip jameica-linux-amd64.zip
$> rm jameica-linux-amd64.zip
$> cd jameica/plugins
$> wget http://www.willuhn.de/projects/hibiscus/releases/1.9/hibiscus/hibiscus.zip
$> unzip hibiscus.zip
$> rm hibiscus.zip

Kartenleser in Hibiscus konfigurieren

Falls pcscd noch nicht läuft:
$> su -c '/etc/init.d/pcscd start'
$> ~/jameica/jameica-amd64.sh

Eigenschaften des Chipkartenlesers (DDV):

Port des Lesers COM2/USB2
CTAPI Treiber /lib64/libct.so
Index des Lesers 0
Index des HBCI Zugangs 1
HBCI Version FinTS 3.0
Tastertur des PCs verwenden ja


Impressum | Datenschutz
support/list/kartenleser/kaanbase.txt · Zuletzt geändert: d.m.Y H:i von willuhn