scr335 error can't get it to work, timeout
Mirko Schmitt <[email protected]> Fri, 27 Apr 2007 17:53:19 +0200
| Newsgroups | gmane.comp.lib.libchipcard.devel |
|---|---|
| Message-ID | <1177689199.7986.3.camel@localhost> |
Hi,
i can't access my reader i did the following:
CardReader: SCM SCR335
Driver: v4.6.5
Driver-Download:
http://www.scmmicro.com/security/pcs_product_drivers.html?lang=de
libchipcard version:
[ebuild R ] sys-libs/libchipcard-2.1.8 USE="ssl usb -debug -doc" 0
kB
$ lsusb
Bus 002 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 001 Device 005: ID 04e6:5115 SCM Microsystems, Inc. SCR335 SmartCard
Reader
Bus 001 Device 002: ID 05e3:0606 Genesys Logic, Inc.
$ uname -a
Linux linuxviech 2.6.19-gentoo-r5 #11 SMP Wed Apr 18 19:24:58 CEST 2007
i686 AMD Athlon(tm) XP 2500+ AuthenticAMD GNU/Linux
How i tried to get it working:
$ cd
scr3xxx_2.6.x_v4.6.5_Release/proprietary/Release/scr3xxxcciddriver.bundle/Contents/Linux/
$ cp libscr3xxx.so.4.6.4 /usr/lib/chipcard2-server/lowlevel/
$ cat /etc/chipcard2-server/drivers/scm33x_ifd/driver.xml
$ cd libscr3xxx.so.4.6.4 /usr/lib/chipcard2-server/lowlevel/
names in config must match driver name.
symlink or change in
$ /etc/chipcard2-server/drivers/scm33x_ifd/driver.xml
<names>
<name>libscr3xxx.so.4.*</name>
<name>libscr3xxx.so.*</name>
</names>
$ chipcardd2 addreader --dtype list
WARN: Configuration file "(null)" does not exist.
Please try the command "init" first.
ccid_ifd (Generic Driver for CCID Devices) [not installed]
cherry_ctapi (Driver for the Cherry 1501 Keyboard Reader) [not
installed]
cyberjack_ctapi (Driver for the Reiner-SCT Cyberjack) [not installed]
kobil_ctapi (Driver for Kobil Readers) [not installed]
omnikey_ifd (Driver for Omnikey CardMan) [not installed]
cm_4000_ifd (Driver for Omnikey CardMan 4000) [not installed]
orga_ctapi (Driver for Orga Readers) [not installed]
scmx32_ifd (Driver for Towitoko/SCM USB Readers) [not installed]
scm33x_ifd (Driver for Towitoko/SCM USB Readers)
tow_ctapi (Driver for the Towitoko Chipdrive Micro)
o2micro_ctapi (Driver for the O2Micro PCMCIA Smartcardbus Reader) [not
installed]
$ chipcardd2 init
chipcardd2: directory_all.c:226: GWEN_Directory_GetPath: Zusicherung
»path« nicht erfüllt.
Abgebrochen
this means you haven't specified a config file, just do:
$ chipcardd2 init -C /etc/chipcard2-server/chipcardd2.conf
Generating DH parameters...
Generating self-signed certificate for server...
Done.
$ chipcardd2 -f --loglevel notice --logtype console
5:2007/04/27 16-39-53:chipcardd(27396):chipcardd2.c: 733: Chipcardd
v2.1.8.0stable started.
5:2007/04/27 16-39-53:chipcardd(27396):chipcardd2.c: 735: LibUSB
supported.
5:2007/04/27 16-39-53:chipcardd(27396):chipcardd2.c: 738: LibSYSFS
supported.
5:2007/04/27 16-39-53:chipcardd(27397):chipcardd2.c: 963: Initializing
daemon.
5:2007/04/27 16-39-53:chipcardd(27397):chipcardd2.c: 1008: Using
configuration file [/etc/chipcard2-server/chipcardd2.conf]
5:2007/04/27 16-39-53:chipcardd(27397):cs_init.c: 427:
Autoconfiguration enabled
5:2007/04/27 16-39-53:chipcardd(27397):pcmciascanner.c: 47: Will use
sysfs to scan for ttyUSB devices
5:2007/04/27 16-39-53:chipcardd(27397):usbttyscanner.c: 54: Will use
sysfs to scan for ttyUSB devices
5:2007/04/27 16-39-53:chipcardd(27396):chipcardd2.c: 798: Watcher now
supervising daemon 27397
3:2007/04/27 16-39-53:chipcardd(27397):pcmciascanner.c: 75: Error
accessing sysfs
5:2007/04/27 16-39-53:chipcardd(27397):devicemanager.c: 2951: Changes in
hardware list
5:2007/04/27 16-39-53:chipcardd(27397):devicemanager.c: 2861:
AUTOCONFIG: Created new reader "auto1-scm_scr335" (UsbRaw/04e6/5115)
3:2007/04/27 16-39-53:chipcardd(27397):devicemanager.c: 2711: No
autoport mode
4:2007/04/27 16-39-53:chipcardd(27397):devicemanager.c: 2866: Could not
automatically assign port, assuming 1
3:2007/04/27 16-39-56:chipcardd(27397):pcmciascanner.c: 75: Error
accessing sysfs
3:2007/04/27 16-39-59:chipcardd(27397):pcmciascanner.c: 75: Error
accessing sysfs
3:2007/04/27 16-40-02:chipcardd(27397):pcmciascanner.c: 75: Error
accessing sysfs
this seems to be normal because your pc might not have pcmcia.
$ chipcard-tool list
Server: 46320c50
Readers:
- tow1 (tow_cdm, port 0)
- cherry_1501 (cherry_keyboard, port 0)
- auto1-scm_scr335 (scm_scr335, port 0)
edit config file and remove unused drivers:
$ vi /etc/chipcard2-server/chipcardd2.conf
put .inactive after the drivers like:
driver.inactive {
# stuff
}
$ chipcard-tool list
Server: 46320da9
Readers:
- auto1-scm_scr335 (scm_scr335, port 0)
if you didn't remove unexistent drivers, it may happen that the
following command will crash your chipcardserver-daemon:
$ chipcard-tool check
now i plugged in my german geldkarte and startet the server and client.
logs are below
---------------------------------------------
$ chipcardd2 -f --loglevel notice --logtype console
5:2007/04/27 17-37-27:chipcardd(8107):chipcardd2.c: 733: Chipcardd
v2.1.8.0stable started.
5:2007/04/27 17-37-27:chipcardd(8107):chipcardd2.c: 735: LibUSB
supported.
5:2007/04/27 17-37-27:chipcardd(8107):chipcardd2.c: 738: LibSYSFS
supported.
5:2007/04/27 17-37-27:chipcardd(8108):chipcardd2.c: 963: Initializing
daemon.
5:2007/04/27 17-37-27:chipcardd(8108):chipcardd2.c: 1008: Using
configuration file [/etc/chipcard2-server/chipcardd2.conf]
5:2007/04/27 17-37-27:chipcardd(8108):cs_init.c: 427: Autoconfiguration
enabled
5:2007/04/27 17-37-27:chipcardd(8108):pcmciascanner.c: 47: Will use
sysfs to scan for ttyUSB devices
5:2007/04/27 17-37-27:chipcardd(8108):usbttyscanner.c: 54: Will use
sysfs to scan for ttyUSB devices
5:2007/04/27 17-37-27:chipcardd(8107):chipcardd2.c: 798: Watcher now
supervising daemon 8108
3:2007/04/27 17-37-28:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
5:2007/04/27 17-37-28:chipcardd(8108):devicemanager.c: 2951: Changes in
hardware list
5:2007/04/27 17-37-28:chipcardd(8108):devicemanager.c: 2861: AUTOCONFIG:
Created new reader "auto1-scm_scr335" (UsbRaw/04e6/5115)
3:2007/04/27 17-37-28:chipcardd(8108):devicemanager.c: 2711: No autoport
mode
4:2007/04/27 17-37-28:chipcardd(8108):devicemanager.c: 2866: Could not
automatically assign port, assuming 1
3:2007/04/27 17-37-31:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
3:2007/04/27 17-37-34:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
3:2007/04/27 17-37-37:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
3:2007/04/27 17-37-40:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
3:2007/04/27 17-37-43:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
5:2007/04/27 17-37-43:chipcardd(8108):clr_clientready.c: 93: Client
"463218b9" started (chipcard-tool, Gwen 2.4.0-stable-r0, ChipCard
2.1.8.0stable)
5:2007/04/27 17-37-43:chipcardd(8108):clr_notification.c: 468: Client
463218b9: SetNotify [chipcard-tool/nobody]
5:2007/04/27 17-37-43:chipcardd(8108):clr_startwait.c: 63: Client
463218b9: StartWait [chipcard-tool/nobody]
5:2007/04/27 17-37-43:chipcardd(8108):devicemanager.c: 2023: Driver
"463218b9" (scm33x_ifd) is up (Library loaded)
3:2007/04/27 17-37-46:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
3:2007/04/27 17-37-49:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
3:2007/04/27 17-37-52:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
3:2007/04/27 17-37-55:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
3:2007/04/27 17-37-58:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
5:2007/04/27 17-38-00:chipcardd(8108):cs_callbacks.c: 31: One of my
connections is down
5:2007/04/27 17-38-00:chipcardd(8108):clientmanager.c: 355: Removing
client 463218b9 [chipcard-tool/nobody]
3:2007/04/27 17-38-01:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
3:2007/04/27 17-38-04:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
4:2007/04/27 17-38-06:chipcardd(8108):devicemanager.c: 1420: Reader
"auto1-scm_scr335" timed out
3:2007/04/27 17-38-07:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
3:2007/04/27 17-38-10:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
4:2007/04/27 17-38-11:gwen(8108):ipc.c: 1283: Got a response for invalid
request (00000002)
3:2007/04/27 17-38-13:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
3:2007/04/27 17-38-16:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
5:2007/04/27 17-38-17:chipcardd(8108):devicemanager.c: 1170: Driver
"scm33x_ifd" is too long idle, stopping it
5:2007/04/27 17-38-17:chipcardd(8108):cs_callbacks.c: 31: One of my
connections is down
5:2007/04/27 17-38-17:chipcardd(8108):devicemanager.c: 1749: Connection
of driver "scm33x_ifd" (463218b9) just went down
3:2007/04/27 17-38-19:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
3:2007/04/27 17-38-22:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
3:2007/04/27 17-38-25:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
3:2007/04/27 17-38-28:chipcardd(8108):pcmciascanner.c: 75: Error
accessing sysfs
---------------------------------------------
$ chipcard-tool --logtype=console --loglevel=info check
6:2007/04/27 17-37-43:chipcard-tool(8109):cardmgr.c: 114: Checking file
"/etc/chipcard2-client/apps/."
6:2007/04/27 17-37-43:chipcard-tool(8109):cardmgr.c: 114: Checking file
"/etc/chipcard2-client/apps/.."
6:2007/04/27 17-37-43:chipcard-tool(8109):cardmgr.c: 114: Checking file
"/etc/chipcard2-client/apps/ddv.xml"
6:2007/04/27 17-37-43:chipcard-tool(8109):cardmgr.c: 114: Checking file
"/etc/chipcard2-client/apps/ddv0.xml"
6:2007/04/27 17-37-43:chipcard-tool(8109):cardmgr.c: 114: Checking file
"/etc/chipcard2-client/apps/ddv1.xml"
6:2007/04/27 17-37-43:chipcard-tool(8109):cardmgr.c: 114: Checking file
"/etc/chipcard2-client/apps/geldkarte.xml"
6:2007/04/27 17-37-43:chipcard-tool(8109):cardmgr.c: 114: Checking file
"/etc/chipcard2-client/apps/kvk.xml"
6:2007/04/27 17-37-43:chipcard-tool(8109):cardmgr.c: 114: Checking file
"/etc/chipcard2-client/apps/memorycard.xml"
6:2007/04/27 17-37-43:chipcard-tool(8109):cardmgr.c: 114: Checking file
"/etc/chipcard2-client/apps/processorcard.xml"
6:2007/04/27 17-37-43:chipcard-tool(8109):cardmgr.c: 114: Checking file
"/etc/chipcard2-client/apps/starcos.xml"
6:2007/04/27 17-37-43:chipcard-tool(8109):cardmgr.c: 114: Checking file
"/etc/chipcard2-client/apps/starcos-hvb.xml"
6:2007/04/27 17-37-43:chipcard-tool(8109):cardmgr.c: 114: Checking file
"/etc/chipcard2-client/apps/starcos-vr.xml"
6:2007/04/27 17-37-43:chipcard-tool(8109):cardmgr.c: 114: Checking file
"/etc/chipcard2-client/apps/examplecard.xml"
5:2007/04/27 17-37-43:chipcard-tool(8109):client.c: 896: Using
configuration file [/etc/chipcard2-client/chipcardc2.conf]
6:2007/04/27 17-37-43:chipcard-tool(8109):client.c: 934: Reading
configuration from "/etc/chipcard2-client/chipcardc2.conf"
6:2007/04/27 17-37-43:chipcard-tool(8109):client.c: 798: Added server
6:2007/04/27 17-37-43:chipcard-tool(8109):client.c: 304: Starting to
connect
6:2007/04/27 17-37-43:chipcard-tool(8109):client.c: 665: Started to
connect
6:2007/04/27 17-37-43:chipcard-tool(8109):client.c: 346: Connected
6:2007/04/27 17-37-43:chipcard-tool(8109):client.c: 380: Notification
received
6:2007/04/27 17-37-43:chipcard-tool(8109):client.c: 380: Notification
received
6:2007/04/27 17-37-44:chipcard-tool(8109):client.c: 380: Notification
received
6:2007/04/27 17-37-44:chipcard-tool(8109):client.c: 380: Notification
received
6:2007/04/27 17-37-46:chipcard-tool(8109):client.c: 609: Could not read
within 1 seconds, giving up
6:2007/04/27 17-37-48:chipcard-tool(8109):client.c: 609: Could not read
within 1 seconds, giving up
6:2007/04/27 17-37-50:chipcard-tool(8109):client.c: 609: Could not read
within 1 seconds, giving up
6:2007/04/27 17-37-52:chipcard-tool(8109):client.c: 609: Could not read
within 1 seconds, giving up
6:2007/04/27 17-37-54:chipcard-tool(8109):client.c: 609: Could not read
within 1 seconds, giving up
6:2007/04/27 17-37-56:chipcard-tool(8109):client.c: 609: Could not read
within 1 seconds, giving up
6:2007/04/27 17-37-58:chipcard-tool(8109):client.c: 609: Could not read
within 1 seconds, giving up
6:2007/04/27 17-38-00:chipcard-tool(8109):client.c: 609: Could not read
within 1 seconds, giving up
ERROR: Timeout.
---------------------------------------------
thanks for your help,
mirko
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/