Re: o2micro card reader
Petric Frank <[email protected]>
| Newsgroups | gmane.comp.lib.libchipcard.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello Martin, On Thursday 02 November 2006 21:00, Martin Preuss wrote: > > Below the outputs of "chipcardd2 -f --logtype console --loglevel info". > > Attached you find 2 files. kvkcard.log when testing "chipcard-tool atr" > > with a German mediacl card. rsacard.log uses a VR NetWorld card > > (definitely a RSA card). > > [...] > > The driver does not send the ATR string (Answer To Reset) which is normally > received from the card upon powerup/reset of the card. Using pcsc-lite (version 1.3.1) it definitely responds to an ATR (here the medical card). The /var/log/messages (timestamps removed) looks like: ------------------------------- cut ------------------------------- pcscd: readerfactory.c:1095:RFInitializeReader() Attempting startup of O2Micro SmartCardBus Reader 00 00. pcscd: readerfactory.c:933:RFBindFunctions() Loading IFD Handler 2.0 pcscd: pcscdaemon.c:464:main() pcsc-lite 1.3.1 daemon ready. pcscd: hotplug_libusb.c:105:HPReadBundleValues() Cannot open PC/SC drivers directory: /usr/lib/readers/usb pcscd: hotplug_libusb.c:106:HPReadBundleValues() Disabling USB support for pcscd. pcscd: eventhandler.c:419:EHStatusHandlerThread() Card inserted into O2Micro SmartCardBus Reader 00 00 pcscd: Card ATR: A0 13 10 91 ------------------------------- cut ------------------------------- The pcscd uses the same shared library (lib_OZSCR.so) as i gave to chipcardd2. The /etc/reader.conf contents: ------------------------------- cut ------------------------------- # Configuration file for pcsc-lite # # Don't modify this file. Instead put a file or modify the files in # /etc/reader.conf.d/ and run /usr/sbin/update-reader.conf # afterwards. Note that when starting pcscd with the init script, # update-reader.conf will be run automatically. # # Note also that this file should include configuration for serial and PCMCIA # readers only; USB readers should _not_ be configured here. # /etc/reader.conf.d/o2micro_ozscr.conf # Configuration file for pcsc-lite # # This file has to be configured for serial and PCMCIA readers only. # normal USB readers shall _not_ be configured here! # # David Corcoran <[email protected]> FRIENDLYNAME "O2Micro SmartCardBus Reader" DEVICENAME /dev/ozscrlx LIBPATH /usr/lib/readers/lib_OZSCR.so CHANNELID 0xF10000 # End of file ------------------------------- cut ------------------------------- Can this be a hint for you ? Maybe i have to add additional data to chipcardd2.conf (device name to use ?). The logs (/var/log/chipcard2/drivers/o2micro_ctapi/*) of a "chipcards2 -f ..." / "chipcards-tool atr" run using the medical card as media are attached. R´The logs seem the have some errors/warnings, but i don't know how to interpret them ? Do you have some hints ? regards Petric ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Libchipcard-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libchipcard-devel
driver.log
(text/x-log, 1.1 KB)
5:2006/11/02 21-27-20:driver(9683):driver.c: 349: Starting driver "/usr/lib/chipcard2-server/drivers/ctapi" with lowlevel "/usr/lib/readers/lib_OZSCR.so" 5:2006/11/02 21-27-20:driver(9683):driver.c: 787: Connected to server 5:2006/11/02 21-27-22:driver(9683):driver.c: 2408: Incoming request "Driver_StartReader" 5:2006/11/02 21-27-22:driver(9683):driver.c: 1341: Command: Start reader 3:2006/11/02 21-27-22:driver(9683):driver.c: 1458: No DriversReaderId 3:2006/11/02 21-27-22:driver(9683):driverctapi.c: 764: Creating reader... 5:2006/11/02 21-27-22:driver(9683):driverctapi.c: 773: Created reader with CTN 0 5:2006/11/02 21-27-22:driver(9683):driver.c: 1502: Reader "o2m" logs to "/var/log/chipcard2/drivers/o2micro_ctapi/o2m.log" 5:2006/11/02 21-27-54:driver(9683):driver.c: 2408: Incoming request "Driver_StopReader" 5:2006/11/02 21-27-54:driver(9683):driver.c: 1666: Reader down 5:2006/11/02 21-28-05:driver(9683):driver.c: 2408: Incoming request "Driver_StopDriver" 5:2006/11/02 21-28-05:driver(9683):driver.c: 1996: Driver down 5:2006/11/02 21-28-05:driver(9683):main.c: 53: Stopping driver "/usr/lib/chipcard2-server/drivers/ctapi"
o2m.log
(text/x-log, 6.4 KB)
5:2006/11/02 21-27-22:o2m(9683):driver.c: 1521: Init reader o2m 5:2006/11/02 21-27-22:o2m(9683):driverctapi.c: 796: Initializing CTAPI driver with 0, 8 (0008) 5:2006/11/02 21-27-22:o2m(9683):driverctapi.c: 553: Requesting information about reader "454a5495" 5:2006/11/02 21-27-22:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-22:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 3:2006/11/02 21-27-22:o2m(9683):driverctapi.c: 565: Too short response when requesting reader information 3:2006/11/02 21-27-22:o2m(9683):String size is 3 3:2006/11/02 21-27-22:o2m(9683):0000: 04 90 00 ... 5:2006/11/02 21-27-22:o2m(9683):driverctapi.c: 667: Requesting units of reader "454a5495" 5:2006/11/02 21-27-22:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-22:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 4:2006/11/02 21-27-22:o2m(9683):driverctapi.c: 690: No/bad tag received when requesting reader units (04) 3:2006/11/02 21-27-22:o2m(9683):String size is 3 3:2006/11/02 21-27-22:o2m(9683):0000: 04 90 00 ... 5:2006/11/02 21-27-22:o2m(9683):driver.c: 1547: ReaderInfo: unit0="icc4" 5:2006/11/02 21-27-22:o2m(9683):driver.c: 1554: Reader up and waiting 5:2006/11/02 21-27-22:o2m(9683):driver.c: 1566: Reader start handled 5:2006/11/02 21-27-23:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-23:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-23:o2m(9683):driver.c: 1286: Status changed on slot 0 (00000000->00020000) (cardnum 0) 5:2006/11/02 21-27-24:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-24:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-25:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-25:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-26:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-26:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-27:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-27:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-28:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-28:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-29:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-29:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-30:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-30:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-31:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-31:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-32:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-32:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-33:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-33:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-34:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-34:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-35:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-35:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-36:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-36:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-37:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-37:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-38:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-38:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-39:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-39:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-40:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-40:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-41:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-41:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-42:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-42:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-43:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-43:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-44:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-44:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-45:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-45:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-46:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-46:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-47:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-47:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-48:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-48:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-49:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-49:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-50:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-50:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-51:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-51:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-52:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-52:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-53:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-53:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-54:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-54:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-54:o2m(9683):driver.c: 1634: Disconnecting reader 5:2006/11/02 21-27-54:o2m(9683):driverctapi.c: 842: Disconnecting reader o2m 5:2006/11/02 21-27-54:o2m(9683):driverctapi.c: 285: Calling dataFn 5:2006/11/02 21-27-54:o2m(9683):driverctapi.c: 293: Returned from dataFn (0) 5:2006/11/02 21-27-54:o2m(9683):driverctapi.c: 424: CTAPI: Soft error SW1=6e, SW2=00 5:2006/11/02 21-27-54:o2m(9683):driver.c: 1647: Deinit succeeded