Hi Shawn,

What does your system log have for where the smart card reader is located?

For example, my system says this:

--
Dec 24 01:28:57 flux usb 3-1: new full speed USB device using address 3
Dec 24 01:28:57 flux pl2303 3-1:1.0: PL-2303 converter detected
Dec 24 01:28:57 flux usb 3-1: PL-2303 converter now attached to ttyUSB0
--

Now, I'm using Gentoo, and am using devfs (and I think SuSE is too), so ttyUSB0 is really /dev/usb/tts/0, so I set the DEVICENAME in readers.conf to

--
FRIENDLYNAME     "Chipdrive Micro130"
DEVICENAME       /dev/usb/tts/0
LIBPATH          /usr/local/pcsc/drivers/libtowitoko.so
--

Now, when I start pcscd, I get

--
flux sbin # ./pcscd -a -f
pcscdaemon.c:238:main pcscd set to foreground with debug send to stderr
pcscdaemon.c:440:main pcsc-lite 1.2.9-beta6 daemon ready.
--

I'm very new to this stuff, and your email got me started with my Chipdrive 130, so this may work for you. Now to see if I can actually *do* something with my card reader...

Let me know if this works for you.

Todd
--
Todd Jackson
Applied Science '04 Computer Engineering Software Option
Queen's University at Kingston
Internship '03-'04 at IBM Toronto Software Lab
[EMAIL PROTECTED]

On Tue, 21 Dec 2004, Shawn Willden wrote:

Hi,

I'm trying to use a USB towitoko chipdrive with SuSe 9.2 and I've run into a problem. Maybe it'll be obvious to someone here. I'm trying to use the pcsc-lite version 1.1.1 provided by SuSe, mainly because I need to make this work on several systems and I prefer to keep the driver installation as non-disruptive as possible.

So, I downloaded the towitoko driver source (2.0.7) and built it:

./configure --enable-usb=yes
make
sudo make install

I did not specify a pcsc-lite-dir because the pcscd man page on the system says that it will look for drivers in /usr/local/pcsc/drivers, and the towitoko README says it installs by default to /usr/local/pcsc/drivers (when USB is enabled). The install actually didn't put the .so files there, so I copied them over to the "right" spot.

The README also says that for USB readers, no readers.conf is necessary. So I commented out everything in reader.conf.

Running pcsc (with debugging output) gives me:

---------------
[EMAIL PROTECTED]:/usr/local/pcsc> sudo /usr/sbin/pcscd -d stdout
pcscdaemon.c:258 main: debug messages to stdout
pcscdaemon.c:413 main: pcsc-lite daemon ready.
---------------

Nothing more. Inserting and removing the reader is never noticed by pcscd, although I do see the expected messages in /var/log/messages about the device being recognized and the pl2303 driver being loaded/unloaded. There are also some errors reported by hotplug on removal, but I don't think they're relevant.

I thought maybe pcscd was really looking elsewhere for the drivers, so I ran it under strace but I can't see it looking anywhere for drivers. It loads up some basic libs, reads from reader.conf and then just waits.

So, I thought, since this is really a serial reader with a built-in USB adapter, maybe I should configure it that way.

So I added a reader.conf like so:

---------------
FRIENDLYNAME    "Towitoko Chipdrive Micro"
DEVICENAME      TOWITOKO_CHIPDRIVE_MICRO
LIBPATH         /usr/local/towitoko/lib/libtowitoko.so.2.0.0
CHANNELID       0x000001
---------------

I then made /dev/ttyS0 a symlink pointing at /dev/ttyUSB0 and tried again.

----------------
[EMAIL PROTECTED]:/usr/local/pcsc> sudo /usr/sbin/pcscd -d stdout
pcscdaemon.c:258 main: debug messages to stdout
readerfactory.c:1318 RFInitializeReader: Attempting startup of Towitoko Chipdrive Micro 0 0.
readerfactory.c:1060 RFBindFunctions: Loading IFD Handler 2.0
readerfactory.c:1355 RFInitializeReader: Open Port 1 Failed
readerfactory.c:1190 RFUnloadReader: Unloading reader driver.
readerfactory.c:219 RFAddReader: Towitoko Chipdrive Micro init failed.
pcscdaemon.c:413 main: pcsc-lite daemon ready.
----------------


Open Port 1 Failed? running it under strace again, I find that the open worked just fine, but something went wrong after that:

----------------
open("/dev/ttyS0", O_RDWR|O_NOCTTY) = 5
ioctl(5, TIOCMBIS, [TIOCM_DTR]) = 0
ioctl(5, TIOCMBIS, [TIOCM_RTS]) = 0
ioctl(5, SNDCTL_TMR_START or TCSETS, {B1200 -opost -isig -icanon -echo ...}) = 0
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, {B1200 -opost -isig -icanon -echo ...}) = 0
ioctl(5, TCFLSH, 0) = 0
poll([{fd=5, events=POLLIN}], 1, 200) = 0
ioctl(5, TIOCMBIS, [TIOCM_DTR]) = 0
ioctl(5, TIOCMBIS, [TIOCM_RTS]) = 0
ioctl(5, SNDCTL_TMR_START or TCSETS, {B9600 -opost -isig -icanon -echo ...}) = 0
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, {B9600 -opost -isig -icanon -echo ...}) = 0
ioctl(5, TCFLSH, 0) = 0
ioctl(5, TCFLSH, 0) = 0
poll([{fd=5, events=POLLOUT, revents=POLLOUT}], 1, 1000) = 1
write(5, "[EMAIL PROTECTED]", 5) = 5
poll([{fd=5, events=POLLIN}], 1, 1000) = 0
close(5) = 0
write(1, "readerfactory.c:1355 RFInitializ"..., 60readerfactory.c:1355 RFInitializeReader: Open Port 1 Failed
) = 60
write(1, "readerfactory.c:1190 RFUnloadRea"..., 62readerfactory.c:1190 RFUnloadReader: Unloading reader driver.
--------------


So I'm guessing that the driver wrote those bytes to the reader and didn't get a response?

So, any suggestions?  Can this just not work with the old 1.1.1 pcsc-lite?

Thanks

  Shawn.



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

Reply via email to