Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO Towitoko CHIPDRIVE micro 120 serial & Libchipcard 4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
struhs
n00b
n00b


Joined: 14 Jun 2005
Posts: 44

PostPosted: Sun Mar 11, 2007 12:31 pm    Post subject: HOWTO Towitoko CHIPDRIVE micro 120 serial & Libchipcard Reply with quote

Dear all,

If you also try to get an old Towitoko CHIPDRIVE micro 120 (serial) working with libchipcard/AqBanking this might help you.

After unsuccessfully trying to get SVN version of libchipcard compiling (msgengine.c compile error), I used the stable versions, which compile without an error.

Here is what I have done so far:

(1) Emerge Towitoko driver, which is currently version 2.0.7-r2:
Code:
emerge towitoko

Try to test, if the driver can find your card reader:
Code:

/usr/bin/tester

Insert a valid smart card and open a new console with "in" and select the serial port of your card reader (e.g.) 1 for COM1.
You should get something like:
Quote:

Initializing terminal at COM1...
Starting terminal monitoring job...
**********************************************************************
Towitoko CT-API tester utility
Copyright (C) 2000 2001 Carlos Prados <cprados@yahoo.com>
Initilized CardTerminals: 1
**********************************************************************
COM1
Status: Processor smartcard present
...


(2) Emerge libchipcard, which should be 4.2.9 (or higher):
Code:
emerge libchipcard


(3) Now it is time to configure libchipcard correctly:
Create /etc/chipcard/server/chipcardd.conf with the following content:
Code:

enabled="1"
role="standAlone"
server {
  typ="local"                 
  addr="/var/run/chipcard.comm"
  int useForDrivers="1"
  int useForServices="1"
} # server
                       
DeviceManager {
  int disableAutoConf="0"
  int disablePciScan="0"
  int hardwareScanInterval="2"
  int hardwareScanTriggerIntervals="4"
  int driverStartDelay="0"
  int driverStartTimeout="10"
  int driverRestartTime="10"
  int readerStartTimeout="20"
  int driverIdleTimeout="10"
  int readerStartDelay="1"
  int readerIdleTimeout="10"
  readerCommandTimeout="60"
  int readerRestartTime="10"

  driver {
    char driverType="ctapi"
    char driverName="tow_ctapi"
    char driverDataDir="/usr/lib/chipcard/server/drivers/ctapi"
    char libraryFile="/usr/lib/libtowitoko.so"
    vars {
      char WriteBoundary="32"
    }
    reader {
      char readerType="tow_cdm"
      char readerName="tow1"
      int slots="1"
      char busType="serial"
      int port="0"
    }
  } # driver

} # DeviceManager


Note: If your card reader is not on COM1 you have to change the line with int port="0" to your needs, e.g. int port="1" for COM2.

(4) Create /etc/chipcard/client/chipcardc.conf with the following content:
Code:

server {
  typ="local"
  addr="/var/run/chipcard.comm"
} # service


(5) Make sure that the log directories /var/log/chipcard/drivers and /var/log/chipcard/services exist. If not, create them as root.

(6) Now add your card reader to libchipcard by explictly specifying your configuration file (this is a bug up to at least version 3.0.2 of libchipcard):
Code:

/etc/init.d/chipcardd4 start


(7) Test, if your card reader is found:
Code:
chipcard-tool list


You should now get something like this:
Quote:

Server: 45f3ecee
Readers:
- tow1 (tow_cdm, port 0)


(8) Check if driver can successfully activate your card reader:
Code:
chipcard3-tool check

You should now get something like this:
Quote:

Readers:
- tow1 (tow_cdm, port 0): up

...and the read LED should turn on for a while.

(9) Put libchipcard-Daemon to your preferred runlevel
Code:

rc-update add chipcardd4 default battery


(10) Now you can emerge e.g. QBankManager.

Hope that'll help.

Regards,
Stefan


Last edited by struhs on Tue May 18, 2010 7:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31342
Location: 56N 3W

PostPosted: Sun Mar 11, 2007 3:41 pm    Post subject: Reply with quote

Moved from Kernel & Hardware to Documentation, Tips & Tricks.
Its not a question, so it belongs here
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
struhs
n00b
n00b


Joined: 14 Jun 2005
Posts: 44

PostPosted: Sun Mar 11, 2007 7:54 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Moved from Kernel & Hardware to Documentation, Tips & Tricks.
Its not a question, so it belongs here


Actually it is a question. But one I had to myself ;-) and I wanted to share my experience because I did not find anything on the web...

But it is ok. Sorry for any inconvenience.

Regards,
Stefan
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum