On 09/01/07, Alon Bar-Lev <[EMAIL PROTECTED]> wrote:
Well...
The hotplug stuff does not work...
Please help me to debug it...

Manually running:
# pcscd --debug --foreground --hotplug
pcscdaemon.c:309:main() pcscd set to foreground with debug send to stderr
pcscdaemon.c:397:main() Hotplug failed

I should have explained how to use it :-)

1. install pcscd as usual
2. for CCID use "./configure --enable-udev" so a correct Info.plist is generated
3. install the ccid driver and start pcscd as usual (ie. _wihout_ --hotplug)
3. insert a CCID device

The udev rule should call /usr/sbin/pcscd --hotplug (this will send a
signal to the already running pcscd) and pcscd should rescan the USB
bus to find the new device.

When starting pcscd when reader is plugged, it seems to work, although
sometime it does not detect the card already inserted.
But when I remove the reader I get infinite mesages of:
Jan  9 20:40:42 alon1 pcscd: ccid_usb.c:476:WriteUSB()
usb_bulk_write(002/032): No such device
Jan  9 20:40:42 alon1 pcscd: ifdwrapper.c:493:IFDStatusICC() Card not
transacted: 617
Jan  9 20:40:42 alon1 pcscd:
eventhandler.c:301:EHStatusHandlerThread() Error communicating to: SCM
SCR 335 (00000000000000) 00 00

Are you using the new CCID driver?

Also please consider modifying the 50 to 60 in rules, so udev default
rules will run before yours.

Done in revision 2322.
What is the problem if the ccid rule is run before udev default rules?

Please consider putting the udev rule file directly in rules, without
creating a link, I don't know how it is for other distributions... But
for Gentoo it is none standard...

It is done like this on Debian.
I think each Linux distribution has a different way to configure/use
udev. So trying to provide a solution for everyone is not possible.

Thanks

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

Reply via email to