Can't read KVK with SPR532
"Felix E. Klee" <[email protected]>
| Newsgroups | gmane.comp.lib.libchipcard.devel |
|---|---|
| Message-ID | <871x5mpw4f.wl%[email protected]> |
Reading a KVK (Krankenversicherungskarte - a German health insurance
card) is not possible with my SPR532 card reader (firmware version:
5.05). Details:
1. I unplug the reader's USB cable.
2. I start chipcardd2 as root:
> /usr/sbin/chipcardd2 --pidfile /var/run/chipcardd2.pid -f --loglevel notice --logtype console
5:2005/07/25 19-40-05:chipcardd(2308):chipcardd2.c: 722: Chipcardd v1.9.12.0beta started.
5:2005/07/25 19-40-05:chipcardd(2308):chipcardd2.c: 724: LibUSB supported.
5:2005/07/25 19-40-05:chipcardd(2308):chipcardd2.c: 787: Nanny now supervising daemon 2309
5:2005/07/25 19-40-05:chipcardd(2309):chipcardd2.c: 952: Initializing daemon.
3:2005/07/25 19-40-05:chipcardd(2309):usbttymonitor.c: 134: Unable to open USB-serial file: No such file or directory
5:2005/07/25 19-40-05:chipcardd(2309):cardserver.c: 388: USB Autoconfiguration enabled
3. I plug in the USB cable. The reader's green card LED starts blinking
slowly (i.e. about every five seconds). Message from the daemon:
5:2005/07/25 19-40-05:chipcardd(2309):cs_usb.c: 154: AUTOCONFIG: Created new reader "auto1-scm_x32" (USB: 04e6/e003)
4. I insert the KVK. The green LED continues blinking slowly and the
daemon doesn't emit any message(s).
5. I invoke "kvkcard2 read" as an ordinary user. Now, the green LED
starts blinking wildly (maybe twice a second) and the daemon emits
messages that keep repeating over and over again:
ifdhandler.c:690:IFDHPowerICC lun: 0
commands.c:111:CmdPowerOn Card absent or mute
ifdhandler.c:726:IFDHPowerICC PowerUp failed
5:2005/07/25 19-44-35:chipcardd(2364):cardserver.c: 195: Client "42e5246d" down
ifdhandler.c:690:IFDHPowerICC lun: 0
commands.c:111:CmdPowerOn Card absent or mute
ifdhandler.c:726:IFDHPowerICC PowerUp failed
ifdhandler.c:690:IFDHPowerICC lun: 0
commands.c:111:CmdPowerOn Card absent or mute
ifdhandler.c:726:IFDHPowerICC PowerUp failed
ifdhandler.c:690:IFDHPowerICC lun: 0
[...]
6. After some time the kvkcard2 finally terminates with the error
message "ERROR: No card found.". The daemon emits the following
messages and the green LED of the card reader goes back to slow
blinking mode:
ifdhandler.c:195:IFDHCloseChannel lun: 0
5:2005/07/25 19-44-49:chipcardd(2364):cs_driver.c: 694: Reader "auto1-scm_x32" is down as expected
5:2005/07/25 19-45-20:chipcardd(2364):cs_driver.c: 1136: Driver "ccid_ifd" is too long idle, stopping it
4:2005/07/25 19-45-22:chipcardd(2364):cs_driver.c: 955: Driver terminated normally
7. I remove the KVK. Neither the reader nor the daemon show any change
(i.e. the LED continues blinking slowly, and no messages from the
daemon).
8. I insert a Geldkarte card. Again no change is indicated by the
reader and by the daemon.
9. I execute "geldkarte2 maxload" as a normal user and get the result
"Card can be loaded with 200.00 EUR". The reader's green LED shines
permanently and the daemon emits a bunch of messages probably not of
interest for resolving the problem I described above:
5:2005/07/25 20-32-53:chipcardd(2364):cardserver.c: 842: Client 42e52476: ClientReady [(null)/nobody]
5:2005/07/25 20-32-53:chipcardd(2364):cardserver.c: 849: Client "42e52476" started (geldkarte2, Gwen 1.14.0.0stable, ChipCard 1.9.12.0beta)
5:2005/07/25 20-32-53:chipcardd(2364):cs_request.c: 790: Client 42e52476: StartWait [geldkarte2/nobody]
5:2005/07/25 20-32-53:chipcardd(2364):cs_request.c: 819: Starting reader "auto1-scm_x32" on account of client 42e52476
5:2005/07/25 20-32-53:chipcardd(2364):cs_driver.c: 1353: Driver "42e5246c" is up (Library loaded)
ifdhandler.c:999:init_driver LogLevel: 0x0003
ifdhandler.c:1010:init_driver DriverOptions: 0x0000
ifdhandler.c:145:IFDHCreateChannel lun: 0
ccid_usb.c:225:OpenUSBByName Manufacturer: Ludovic Rousseau ([email protected])
ccid_usb.c:235:OpenUSBByName ProductString: Generic CCID reader v0.9.3
ccid_usb.c:241:OpenUSBByName Copyright: This driver is protected by terms of the GNU General Public License version 2, or (at your option) any later version.
ccid_usb.c:376:OpenUSBByName Found Vendor/Product: 04E6/E003 (SPR 532)
ccid_usb.c:378:OpenUSBByName Using USB bus/device: 001/008
ifdhandler.c:690:IFDHPowerICC lun: 0
5:2005/07/25 20-32-53:chipcardd(2364):cs_driver.c: 552: Reader "auto1-scm_x32" is up (Reader up and waiting), no info
ifdhandler.c:690:IFDHPowerICC lun: 0
ifdhandler.c:690:IFDHPowerICC lun: 0
3:2005/07/25 20-32-54:chipcardd(2364):cardmgr.c: 466: Adding card types...
5:2005/07/25 20-32-54:chipcardd(2364):cs_cards.c: 484: Free card added with id "42e53057" in reader "auto1-scm_x32"(42e5246c)
5:2005/07/25 20-32-54:chipcardd(2364):cs_cards.c: 258: Advertising card 42e53057 to client 42e52476
5:2005/07/25 20-32-54:chipcardd(2364):cs_request.c: 992: Client 42e52476: TakeCard [geldkarte2/nobody]
5:2005/07/25 20-32-54:chipcardd(2364):cs_cards.c: 197: Card "42e53057" taken by client "42e52476"
5:2005/07/25 20-32-54:chipcardd(2364):cs_request.c: 1458: Client 42e52476: SelectCard (ProcessorCard) [geldkarte2/nobody]
5:2005/07/25 20-32-54:chipcardd(2364):cardmgr.c: 443: Card type "ProcessorCard" selected
5:2005/07/25 20-32-54:chipcardd(2364):cs_request.c: 1458: Client 42e52476: SelectCard (geldkarte) [geldkarte2/nobody]
5:2005/07/25 20-32-54:chipcardd(2364):cardmgr.c: 443: Card type "geldkarte" selected
5:2005/07/25 20-32-54:chipcardd(2364):cs_request.c: 1317: Client 42e52476: ExecCommand (SelectMF) [geldkarte2/nobody]
ifdhandler.c:800:IFDHTransmitToICC lun: 0
5:2005/07/25 20-32-54:chipcardd(2364):cs_request.c: 1317: Client 42e52476: ExecCommand (SelectEFS) [geldkarte2/nobody]
ifdhandler.c:800:IFDHTransmitToICC lun: 0
5:2005/07/25 20-32-54:chipcardd(2364):cs_request.c: 1317: Client 42e52476: ExecCommand (ReadRecord) [geldkarte2/nobody]
ifdhandler.c:800:IFDHTransmitToICC lun: 0
5:2005/07/25 20-32-55:chipcardd(2364):cs_request.c: 1317: Client 42e52476: ExecCommand (SelectDFS) [geldkarte2/nobody]
ifdhandler.c:800:IFDHTransmitToICC lun: 0
5:2005/07/25 20-32-55:chipcardd(2364):cs_request.c: 1317: Client 42e52476: ExecCommand (SelectEFS) [geldkarte2/nobody]
ifdhandler.c:800:IFDHTransmitToICC lun: 0
5:2005/07/25 20-32-55:chipcardd(2364):cs_request.c: 1317: Client 42e52476: ExecCommand (ReadRecord) [geldkarte2/nobody]
ifdhandler.c:800:IFDHTransmitToICC lun: 0
5:2005/07/25 20-32-55:chipcardd(2364):cs_request.c: 905: Client 42e52476: StopWait [geldkarte2/nobody]
5:2005/07/25 20-32-55:chipcardd(2364):cs_request.c: 1317: Client 42e52476: ExecCommand (SelectEFS) [geldkarte2/nobody]
ifdhandler.c:800:IFDHTransmitToICC lun: 0
5:2005/07/25 20-32-55:chipcardd(2364):cs_request.c: 1317: Client 42e52476: ExecCommand (ReadRecord) [geldkarte2/nobody]
ifdhandler.c:800:IFDHTransmitToICC lun: 0
5:2005/07/25 20-32-55:chipcardd(2364):cs_request.c: 1078: Client 42e52476: ReleaseCard [geldkarte2/nobody]
5:2005/07/25 20-32-55:chipcardd(2364):cs_cards.c: 557: Resetting card "42e53057"
ifdhandler.c:690:IFDHPowerICC lun: 0
5:2005/07/25 20-32-55:chipcardd(2364):cardserver.c: 195: Client "42e52476" down
ifdhandler.c:690:IFDHPowerICC lun: 0
ifdhandler.c:195:IFDHCloseChannel lun: 0
5:2005/07/25 20-33-11:chipcardd(2364):cs_driver.c: 694: Reader "auto1-scm_x32" is down as expected
5:2005/07/25 20-33-11:chipcardd(2364):cs_cards.c: 64: Card 42e53057 is down: Reader down
5:2005/07/25 20-33-11:chipcardd(2364):cs_cards.c: 144: Unused card "42e53057" in reader "auto1-scm_x32" is invalid, removing it
5:2005/07/25 20-33-42:chipcardd(2364):cs_driver.c: 1136: Driver "ccid_ifd" is too long idle, stopping it
4:2005/07/25 20-33-44:chipcardd(2364):cs_driver.c: 955: Driver terminated normally
10. The green LED is back to blinking slowly.
Does anyone know what's going on here? Is it not possible to read a KVK
with the SPR532?
BTW, it's not that I need to really read KVKs; I mostly want to check my
setup, and under Windows reading the KVK works, although I had some
problems there as well, but of different kind as it appears.
--
Felix E. Klee
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click