Hi,

I have a problem with the driver of the CHIPDRIVE extern 330 that I want to use with 
the bundle. I thinks this problem is present for all the USB reader using this driver 
in a bundle.

I have try to trace the execution :
In IFDHCreateChannel in ifdhandler.c l:104 and as the Channel provided by pcscd is 
0x200001 and as CTAPI_WIN32_COM is not defined, pn = 0x8001

Then in CT_init in ctapi.c l:70 is called CardTerminal_Init.
I think the problem is in this function in cardtermical.c l:94 because IO_Serial_Init 
will try to open pn = 0x8001+1= 0x8002 !!!
Or the problem is in IFDHCreateChannel where the l:136 may not be in an 'else' !

Below the steps I have followed for the installation:

tar xvzf towitoko-2.0.7.tar.gz
cd towitoko-2.0.7
./configure --enable-usb-bundle --prefix=/usr/local/pcsc/drivers/towitoko 
--enable-debug=3

make
With root priviledge :
make install

I plug my reader and in /var/log/messages appears:
hub.c: USB new device connect on bus1/2, assigned device number 19
usbserial.c: PL-2303 converter detected
usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for devfs)

[EMAIL PROTECTED]:/usr/local/pcsc/drivers# /usr/local/pcsc/sbin/pcscd -f -d stderr 
pcscdaemon.c:256 main: pcscd set to foreground
pcscdaemon.c:265 main: debug messages to stderr
pcscdaemon.c:473 main: pcsc-lite daemon ready.
readerfactory.c:1319 RFInitializeReader: Attempting startup of Towitoko Chipdrive USB 
0 0.
readerfactory.c:1061 RFBindFunctions: Loading IFD Handler 2.0
IO: Opening serial port /dev/ttyUSB1
CTAPI: CT_init(ctn=0, pn=32769)=-10
readerfactory.c:1356 RFInitializeReader: Open Port 200001 Failed
readerfactory.c:1191 RFUnloadReader: Unloading reader driver.
readerfactory.c:220 RFAddReader: Towitoko Chipdrive USB init failed.
pcscdaemon.c:530 Preparing for suicide
winscard_msg.c:248 SHMProcessEvents: Select returns with failure: Interrupted system 
call
pcscdaemon.c:184 SVCServiceRun: Error in SHMProcessEvents
readerfactory.c:1611 RFCleanupReaders: entering cleaning function
pcscdaemon.c:496 at_exit: cleaning /var/run/

The tester gives the output:
[EMAIL PROTECTED]:/usr/local/pcsc/drivers# /usr/local/pcsc/drivers/towitoko/bin/tester 
**********************************************************************
Towitoko CT-API tester utility
Copyright (C) 2000 2001 Carlos Prados <[EMAIL PROTECTED]>
Initilized CardTerminals: 0
**********************************************************************
Select option:
in: Initialize new terminal
ch: Change current terminal
cl: Close current terminal
*: Refresh Menu
q: Quit
$ in
Port (COM[1..n] or USB[1..n]): USB1
Initializing terminal at USB1...
IO: Opening serial port /dev/ttyUSB0
IO: Catching properties
IO: Setting properties: 1200 bps; 7 bits/byte; None parity; 1 stopbits; dtr=1; rts=1
IO: Receiving: 0 
IO: Receiving: 14 
IO: Receiving: 44 
IO: Receiving: A 
IO: Receiving: 6B 
IO: Receiving: 6B 
IO: Receiving: 55 
IO: Receiving: 2A 
IO: Receiving: 22 
IO: Receiving: 12 
IO: Receiving: 4A 
IO: Receiving: 16 
IO: Receiving: 7C 
IO: Receiving: 0 
IO: Receiving: TIMEOUT
IFD: Initialicing slot number 0
IO: Catching properties
IO: Setting properties: 9600 bps; 8 bits/byte; Even parity; 2 stopbits; dtr=1; rts=1
IFD: Setting baudrate to 9600
IFD: Parity = Even
IO: Sending: 6F 40 6A F 4C 
IO: Receiving: 1 
IO: Sending: 0 1 
IO: Receiving: 84 43 93 
IFD: Reader type = Chipdrive Extern I
CTAPI: CT_init(ctn=0, pn=32768)=0
CTAPI: CT_data(ctn=0, *dad=0x01, *sad=0x02, lc=11, *cmd={20 13 00 80 00 00 00 00 01 80 
00 }, *lr=256, rsp=[])
IO: Sending: 3 7 
IO: Receiving: C0 82 
IFD: Status = card / change
CTAPI: CT_data(ctn=0, *dad=0x01, *sad=0x01, lc=11, *cmd={}, *lr=3, rsp={05 90 00 })=0
Activating card...
CTAPI: CT_data(ctn=0, *dad=0x01, *sad=0x02, lc=5, *cmd={20 12 01 01 00 }, *lr=256, 
rsp=[])
IO: Sending: 3 7 
IO: Receiving: 40 83 
IFD: Status = card / no change
IFD: LED = Red
IO: Sending: 6F 1 6A F 46 
IO: Receiving: 1 
IFD: Setting baudrate to 115200
IO: Sending: 6E 80 DD 0 8 24 
IO: Receiving: 1 
IO: Catching properties
IO: Setting properties: 115200 bps; 8 bits/byte; Even parity; 2 stopbits; dtr=1; rts=1
IO: Sending: 2 
IFD: Activating card
IO: Sending: 60 F 88 
IO: Receiving: 1 
IO: Sending: 4 
IO: Sending: 70 80 62 F B 
IO: Receiving: 1 
IO: Sending: 1 
IO: Sending: 17 29 
IO: Receiving: FF FF FF FF FF FF FF FF 
IO: Receiving: FE 
IFD: Read Memory: FF FF FF FF FF FF FF FF 
IFD: I2C short set read address: 0
IO: Sending: 9 
IO: Sending: 7C 64 41 A0 0 64 40 A1 F 10 
IO: Receiving: 1 
IO: Sending: 1 
IO: Sending: 3 1 
IO: Receiving: 50 A3 
IFD: Status = card / no change
IO: Sending: 2 
IFD: Deactivating card
IO: Sending: 61 F 8C 
IO: Receiving: 1 
IFD: LED = Red
IO: Sending: 4 
IO: Sending: 6F 1 6A F D6 
IO: Receiving: 1 
IFD: Setting baudrate to 9600
IO: Sending: 5 
IO: Sending: 6E B 56 2 8 A9 
IO: Receiving: 1 
IO: Catching properties
IO: Setting properties: 9600 bps; 8 bits/byte; Even parity; 2 stopbits; dtr=1; rts=1
IFD: Activating card
IO: Sending: 60 F 9C 
IO: Receiving: 1 
IFD: Resetting card:
IO: Sending: A0 6F 0 5 74 
IO: Receiving: TIMEOUT
IO: Sending: 80 6F 0 5 76 
IO: Receiving: TIMEOUT
IO: Sending: A0 6F 0 5 74 
IO: Receiving: 3 
IO: Receiving: 59 
IO: Receiving: 5B 
IO: Receiving: FF 
IO: Receiving: BB 
IO: Receiving: 6F 
IO: Receiving: 69 
IO: Receiving: F6 
IO: Receiving: FF 
ICC: Detected inverse convention processor card
IFD: LED = Green
IO: Sending: 6F 2 6A F 5E 
IO: Receiving: 1 
PPS: Protocol T=0 selected
PPS: T=0, F=372, D=1.000000, N=0
Protocol: T=0: WWT=1000
CTAPI: CT_data(ctn=0, *dad=0x01, *sad=0x01, lc=5, *cmd={}, *lr=11, rsp={3F 65 25 00 22 
09 69 90 00 90 01 })=0
**********************************************************************
Towitoko CT-API tester utility
Copyright (C) 2000 2001 Carlos Prados <[EMAIL PROTECTED]>
Initilized CardTerminals: 1
**********************************************************************
USB1
Status: Processor smartcard present
ATR: 3F 65 25 00 22 09 69 90 00 
**********************************************************************
Select option:
in: Initialize new terminal
ch: Change current terminal
cl: Close current terminal
sc: Select Class Byte (current: 00)
sf: Select File
gr: Get Response
vk: Verify Key (Cryptoflex)
rb: Read Binary
ub: Update Binary
pps: Send PPS
*: Refresh Menu
q: Quit
USB1$ 

Regards,

Damien Sauveron

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle

Reply via email to