Hi List!

I think i'm step further now.

I've deleted /etc/readers.conf now in the hope it could help.

I use pcsc-lite-1.1.1 and compiled it the following way:
 1. ./configure --enable-libusb=/usr/lib --enable-daemon --enable-debug 
--enable-threadsafe --prefix=/usr/loca
 l/pcsc --sysconfdir=/etc --enable-runpid=/var/run/pcscd.pid
 2. make
 3. make install
 4. echo "/usr/local/pcsc/lib" >> /etc/ld.so.conf
 5. ldconfig
 6. mkdir /dev/pcsc
 7. mkdir /usr/local/pcsc/drivers
 8. echo "/usr/local/pcsc/sbin/pcscd" >> /etc/rc.d/rc.local


I have version 0.1.8 of the lib-usb library, but as it is part of my SuSE system i 
just installed the rpm instead of compiling it myself. Could this be a reason?


When i execute testpcsc it just hangs. It doesn't crash, but it just seems it stops 
working.

/usr/lib/pcsc-lite/testpcsc
MUSCLE PC/SC Lite Test Program

Testing SCardEstablishContext    : Command successful.
Testing SCardGetStatusChange


pcscd doesn't notice if i plug in or out my cardreader:

pcscd -d stdout
pcscdaemon.c:258 main: debug messages to stdout
pcscdaemon.c:395 main: warning: no reader.conf found
[this happens, when i start /usr/lib/pcsc-lite/testpcsc]
pcscdaemon.c:413 main: pcsc-lite daemon ready.
winscard_msg.c:263 SHMProcessEvents: Common channel packet arrival
winscard.c:77 SCardEstablishContext: Establishing Context: 17027100
        

But readertest is now a bit more interesting perhaps:

readertest -D /usr/local/towitoko/lib/libtowitoko.so.2.0.0 -d usb -v -p usb0
6:2004/09/08 10-41-05:rt(5611):ctcore_public.c:  340: Opened dir 
"/usr/share/libchipcard/drivers", read
ing.
6:2004/09/08 10-41-05:rt(5611):ctcore_public.c:  357: Found file "."
6:2004/09/08 10-41-05:rt(5611):ctcore_public.c:  357: Found file ".."
6:2004/09/08 10-41-05:rt(5611):ctcore_public.c:  357: Found file "towitoko.dsc"
6:2004/09/08 10-41-05:rt(5611):ctcore_public.c:  396: Adding drivers from file 
"/usr/share/libchipcard/
drivers/towitoko.dsc"
6:2004/09/08 10-41-05:rt(5611):ctcore_public.c:  357: Found file "kobil.dsc"
6:2004/09/08 10-41-05:rt(5611):ctcore_public.c:  396: Adding drivers from file 
"/usr/share/libchipcard/
drivers/kobil.dsc"
6:2004/09/08 10-41-05:rt(5611):ctcore_public.c:  357: Found file "cyberjack.dsc"
6:2004/09/08 10-41-05:rt(5611):ctcore_public.c:  396: Adding drivers from file 
"/usr/share/libchipcard/       rivers/cyberjack.dsc"
6:2004/09/08 10-41-05:rt(5611):ctcore_public.c:  357: Found file "ctapi-fake.dsc"
6:2004/09/08 10-41-05:rt(5611):ctcore_public.c:  396: Adding drivers from file 
"/usr/share/libchipcard/       rivers/ctapi-fake.dsc"
6:2004/09/08 10-41-05:rt(5611):ctcore_public.c:  357: Found file "orga.dsc"
6:2004/09/08 10-41-05:rt(5611):ctcore_public.c:  396: Adding drivers from file 
"/usr/share/libchipcard/       rivers/orga.dsc"
6:2004/09/08 10-41-05:rt(5611):ctcore_public.c:  357: Found file "README"
Initialisere Kern von Libchipcard
4:2004/09/08 10-41-05:rt(5611):ctcore.c: 1166: No support for PCSC
Melde Leser an [Announcing Reader]
5:2004/09/08 10-41-05:rt(5611):ctcore.c:  244: Added reader "TestReader" (id=386)
Registriere Client, reserviere Leser [Register Client, reserved reader]
6:2004/09/08 10-41-05:rt(5611):ctcore.c:  772: Registered client 2265
3:2004/09/08 10-41-05:rt(5611):ctcore.c:  647: Unknown driver type for reader "386": 0
4:2004/09/08 10-41-05:rt(5611):ctcore.c:  702: Could not allocate driver for reader 
"386"
4:2004/09/08 10-41-05:rt(5611):ctcore.c:  850: Could not allocate reader
An diesem Anschlu� befindet sich kein Kartenleser. [there is no reader on this port]
6:2004/09/08 10-41-05:rt(5611):ctcore.c: 1185: Unregistering client 2265
6:2004/09/08 10-41-05:rt(5611):ctcore.c: 1206: Removing reader description for 
"TestReader"


But i still need help and this thing /does/ work with linux.
Thank you for all this help up to now and thank you to all you will still help me 
solving this problem.
Thanks

Michael
----------------------------

Michael,

I have a  SCR-331 USB reader. So perhaps there are similarities.



> > [1] http://pcsclite.alioth.debian.org/ccid.html
> > [2] ftp://ftp.scmmicro.com/security/drivers/scr335_Redhat_1.1.1.tar.gz
> >
> > Regards,
> > --
> > Damien Sauveron
> >
>
> Yeah, i've already noticed that driver, but i don't know how to  use it.


For a USB, you don't need the file /etc/readers.conf

Which version of pcsc-lite do you have installed?
How did you configure it? Which options?



You will need libusb support and to specify the USB drop directories

I have libusb-0.1.7-3 on my Fedora system.


I used something like
/configure --enable-daemon --enable-debug --enable-threadsafe --enable-debugatr
  --prefix=/usr/local/pcsc --enable-libusb=...

Does it compile with no errors?

when you start up pcscd use
/pcscd -d stdout

and then plug in the card reader.

Also - when you run pcsc-lite/src/testpcsc

what does it say? I get
------------------------
src% ./testpcsc

MUSCLE PC/SC Lite Test Program

Testing SCardEstablishContext    : Command successful.
Testing SCardGetStatusChange
Please insert a working reader   : Command successful.
Testing SCardListReaders         : Command successful.
Reader 01: SCR 331-DI 0 0
Enter the reader number          :
-------------------------------------


I think you should also have a /usr/local/pcsc/lib/bundle/ifd-ccid.bundle directory
this is where the ccid stuff gets installed (default location).

I think you might need the ifd-devkit as well. My /usr/local/pcsc/lib/bundle
directory has the file libgen_ifd.so inside


There is the ifd-test-1.0 kit which can be used to test the ifd stuff - I think.When I 
run it, I get:

ifd-test-1.0% ./ifdtest
Reader 01: SCR 331-DI 0 0
Enter the desired reader number :


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

Reply via email to