CT-API driver for OMNIKEY Cardman 3821 with libchipcard2
"Apitzsch Felix" <[email protected]>
| Newsgroups | gmane.comp.lib.libchipcard.devel |
|---|---|
| Message-ID | <5AC0F51A926CD442BC08D55DA7DAB1D401E02DDA@3mxma1r.hpi.uni-potsdam.de> |
Hi, I am trying to get my new Omnikey Cardman 3821 (usb+keypad+display - www.omnikey.com <http://www.omnikey.com/> ) running with chipcardd2. Omnikey provides a pc/sc and a ct-api driver for linux. Currently I am trying the ct-api driver, since I need read data from a german kvk (memory card) and I am not sure this is working with pc/sc. To get to the point, this ct-api driver requires a ctn > 0 ( CTN may not be 0!) and the port number has to be 35 (according to the manual) to run this reader model. I have no idea how to configure this in the config files. I wrote my own driver.xml (copying from the examples), but I do not known where to place ctn and pn. I hope that actually this is causing the problems, since I tried to avoid any other conflicts (disabled pcscd and openct). I will attach some configuration info and would be thankful for any hints. Regards, Felix ----------------------------------------------------------------------------------- Felix Apitzsch Hasso-Plattner-Institut für Softwaresystemtechnik Postfach 900460 D-14440 Potsdam Telefon: +49 331 5509 516 Email: [email protected] <mailto:[email protected]> -----------------------------------------------------------------------------------
driver.log
(application/octet-stream, 2.6 KB)
5:2005/08/17 20-57-58:driver(11837):driver.c: 334: Starting driver "/usr/lib/chipcard2-server/drivers/ctapi" with lowlevel "/usr/lib/libctdeuti.so" 5:2005/08/17 20-57-58:driver(11837):driver.c: 753: Connected to server 5:2005/08/17 20-57-58:driver(11837):driver.c: 2015: Incoming request "StartReader" 5:2005/08/17 20-57-58:driver(11837):driver.c: 1276: Command: Start reader 3:2005/08/17 20-57-58:driver(11837):driver.c: 1393: No DriversReaderId 3:2005/08/17 20-57-58:driver(11837):driverctapi.c: 623: Creating reader... 5:2005/08/17 20-57-58:driver(11837):driverctapi.c: 632: Created reader with CTN 0 5:2005/08/17 20-57-58:driver(11837):driver.c: 1437: Reader "auto1-cardman" logs to "/usr/var/log/chipcard2/drivers/omnikey_ctapi/auto1-cardman.log" 5:2005/08/17 20-58-20:driver(11837):driver.c: 2015: Incoming request "StartReader" 5:2005/08/17 20-58-20:driver(11837):driver.c: 1276: Command: Start reader 4:2005/08/17 20-58-20:driver(11837):driver.c: 1314: A reader with id "430388b7" already exists 3:2005/08/17 20-58-20:driver(11837):driver.c: 1322: Could not restart reader 5:2005/08/17 20-58-41:driver(11837):driver.c: 2015: Incoming request "StartReader" 5:2005/08/17 20-58-41:driver(11837):driver.c: 1276: Command: Start reader 4:2005/08/17 20-58-41:driver(11837):driver.c: 1314: A reader with id "430388b7" already exists 3:2005/08/17 20-58-41:driver(11837):driver.c: 1322: Could not restart reader 5:2005/08/17 20-59-03:driver(11837):driver.c: 2015: Incoming request "StartReader" 5:2005/08/17 20-59-03:driver(11837):driver.c: 1276: Command: Start reader 4:2005/08/17 20-59-03:driver(11837):driver.c: 1314: A reader with id "430388b7" already exists 3:2005/08/17 20-59-03:driver(11837):driver.c: 1322: Could not restart reader 5:2005/08/17 20-59-25:driver(11837):driver.c: 2015: Incoming request "StartReader" 5:2005/08/17 20-59-25:driver(11837):driver.c: 1276: Command: Start reader 4:2005/08/17 20-59-25:driver(11837):driver.c: 1314: A reader with id "430388b7" already exists 3:2005/08/17 20-59-25:driver(11837):driver.c: 1322: Could not restart reader 5:2005/08/17 20-59-47:driver(11837):driver.c: 2015: Incoming request "StartReader" 5:2005/08/17 20-59-47:driver(11837):driver.c: 1276: Command: Start reader 4:2005/08/17 20-59-47:driver(11837):driver.c: 1314: A reader with id "430388b7" already exists 3:2005/08/17 20-59-47:driver(11837):driver.c: 1322: Could not restart reader 3:2005/08/17 21-00-07:driver(11837):driver.c: 1949: Network error 3:2005/08/17 21-00-07:driver(11837):main.c: 50: An error occurred 5:2005/08/17 21-00-07:driver(11837):main.c: 53: Stopping driver "/usr/lib/chipcard2-server/drivers/ctapi"
auto1-cardman.log
(application/octet-stream, 3.1 KB)
5:2005/08/17 20-57-58:auto1-cardman(11837):driver.c: 1456: Init reader auto1-cardman 5:2005/08/17 20-57-58:auto1-cardman(11837):driverctapi.c: 655: Initializing CTAPI driver with 0, 0 (0000) 3:2005/08/17 20-57-58:auto1-cardman(11837):driverctapi.c: 662: Could not init reader "auto1-cardman" at port 0 : -1 3:2005/08/17 20-57-58:auto1-cardman(11837):driver.c: 1463: Could not connect reader auto1-cardman (-1: Invalid port number) 5:2005/08/17 20-57-58:auto1-cardman(11837):driver.c: 1501: Reader start handled 5:2005/08/17 20-58-20:auto1-cardman(11837):driver.c: 1316: Restarting reader 5:2005/08/17 20-58-20:auto1-cardman(11837):driverctapi.c: 701: Disconnecting reader auto1-cardman 5:2005/08/17 20-58-20:auto1-cardman(11837):driverctapi.c: 278: Calling dataFn 5:2005/08/17 20-58-20:auto1-cardman(11837):driverctapi.c: 286: Returned from dataFn (-1) 3:2005/08/17 20-58-20:auto1-cardman(11837):driverctapi.c: 289: CTAPI error on "CT_data": -1 3:2005/08/17 20-58-20:auto1-cardman(11837):driverctapi.c: 719: Could not deinit reader "auto1-cardman" 5:2005/08/17 20-58-41:auto1-cardman(11837):driver.c: 1316: Restarting reader 5:2005/08/17 20-58-41:auto1-cardman(11837):driverctapi.c: 701: Disconnecting reader auto1-cardman 5:2005/08/17 20-58-41:auto1-cardman(11837):driverctapi.c: 278: Calling dataFn 5:2005/08/17 20-58-41:auto1-cardman(11837):driverctapi.c: 286: Returned from dataFn (-1) 3:2005/08/17 20-58-41:auto1-cardman(11837):driverctapi.c: 289: CTAPI error on "CT_data": -1 3:2005/08/17 20-58-41:auto1-cardman(11837):driverctapi.c: 719: Could not deinit reader "auto1-cardman" 5:2005/08/17 20-59-03:auto1-cardman(11837):driver.c: 1316: Restarting reader 5:2005/08/17 20-59-03:auto1-cardman(11837):driverctapi.c: 701: Disconnecting reader auto1-cardman 5:2005/08/17 20-59-03:auto1-cardman(11837):driverctapi.c: 278: Calling dataFn 5:2005/08/17 20-59-03:auto1-cardman(11837):driverctapi.c: 286: Returned from dataFn (-1) 3:2005/08/17 20-59-03:auto1-cardman(11837):driverctapi.c: 289: CTAPI error on "CT_data": -1 3:2005/08/17 20-59-03:auto1-cardman(11837):driverctapi.c: 719: Could not deinit reader "auto1-cardman" 5:2005/08/17 20-59-25:auto1-cardman(11837):driver.c: 1316: Restarting reader 5:2005/08/17 20-59-25:auto1-cardman(11837):driverctapi.c: 701: Disconnecting reader auto1-cardman 5:2005/08/17 20-59-25:auto1-cardman(11837):driverctapi.c: 278: Calling dataFn 5:2005/08/17 20-59-25:auto1-cardman(11837):driverctapi.c: 286: Returned from dataFn (-1) 3:2005/08/17 20-59-25:auto1-cardman(11837):driverctapi.c: 289: CTAPI error on "CT_data": -1 3:2005/08/17 20-59-25:auto1-cardman(11837):driverctapi.c: 719: Could not deinit reader "auto1-cardman" 5:2005/08/17 20-59-47:auto1-cardman(11837):driver.c: 1316: Restarting reader 5:2005/08/17 20-59-47:auto1-cardman(11837):driverctapi.c: 701: Disconnecting reader auto1-cardman 5:2005/08/17 20-59-47:auto1-cardman(11837):driverctapi.c: 278: Calling dataFn 5:2005/08/17 20-59-47:auto1-cardman(11837):driverctapi.c: 286: Returned from dataFn (-1) 3:2005/08/17 20-59-47:auto1-cardman(11837):driverctapi.c: 289: CTAPI error on "CT_data": -1 3:2005/08/17 20-59-47:auto1-cardman(11837):driverctapi.c: 719: Could not deinit reader "auto1-cardman"
driver.xml
(text/xml, 746 B)
<driver name="omnikey_ctapi" type="ctapi">
<short>OMNIKEY Cardman 3821</short>
<manufacturer>
<name>OMNIKEY</name>
<url>http://www.omnikey.com/</url>
</manufacturer>
<lib>
<names>
<name>libctdeuti.so</name>
</names>
<locations>
<loc>/usr/lib</loc>
</locations>
<downloads>
<url></url>
<filename>http://www.omnikey.com/</filename>
</downloads>
</lib>
<readers>
<reader name="cardman" com="USB" vendor="0x076b" product="0x3821" >
<short>OMNIKEY CardMan 3821</short>
<ports>
<port value="35">USB0</port>
</ports>
<flags>
<flag>keypad</flag>
<flag>display</flag>
</flags>
</reader>
</readers>
</driver>
lsusb.txt
(text/plain, 505 B)
Bus 004 Device 001: ID 0000:0000 Bus 003 Device 003: ID 0403:6001 Future Technology Devices International, Ltd 8-bit FIFO Bus 003 Device 002: ID 046d:08f5 Logitech, Inc. Bus 003 Device 001: ID 0000:0000 Bus 002 Device 005: ID 0409:0058 NEC Corp. HighSpeed Hub Bus 002 Device 004: ID 046d:c00c Logitech, Inc. Optical Wheel Mouse Bus 002 Device 003: ID 076b:3821 OmniKey AG Bus 002 Device 002: ID 0409:0058 NEC Corp. HighSpeed Hub Bus 002 Device 001: ID 0000:0000 Bus 001 Device 001: ID 0000:0000
uname-a.txt
(text/plain, 134 B)
Linux fb10b15ws04 2.6.12-gentoo-r9 #1 SMP Tue Aug 16 17:19:38 CEST 2005 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz GenuineIntel GNU/Linux
verstion.txt
(text/plain, 24 B)
libchipcard2-1.9.13beta