Hi, thanks for your reply (especially on such a date and time) :-)
On Sunday 24 December 2006 21:39, Ludovic Rousseau wrote: > On 24/12/06, Martin Preuss <[EMAIL PROTECTED]> wrote: [...] > I tried with 3 CCID readers and my CCID driver. I received Lun 0, 1000 and > 2000. [...] Which version of PCSClite are you using then? Maybe your's is newer than 1.3.1 and it has already been fixed in your version? [...] > I suspect a bug in your code :-) [...] That's what I first thought, too. But how can it be? I log the LUN in my IFDHCreateChannelByName(), and it always says "LUN=0"... That's ok for the first reader, but it is definately not ok for the second and further readers. Since this function is called by PC/SC (not by my driver) and it is always given LUN=0, how can it be a bug in my code? BTW: I am abosultely willing to entertain the suggestion that there are bugs in our driver, but I can't see what kind of bug on our side could induce this behaviour... BTW: There are other strange things happening when I insert the second reader: As my log shows (attached "pcscd.log") the name of the second reader is unreadable (the first one is printed correctly, but the second one contains unreadable characters? This is *before* the driver's function IFDHCreateChannelByName is called, so there is no time for my driver to screw anything up). Please find my logs in the attachement... I can't make heads and tails of it... Regards Martin -- "Things are only impossible until they're not" AqBanking - http://www.aqbanking.de/ LibChipcard - http://www.libchipcard.de/
[000012b3] 2006/11/25 00:30:18:497636: ifd: ifdhandler.c: 196:IFDHCreateChannelByName(): 0=CT_init_name(0,usb:0c4b/0100:libusb:003:002) [000012b3] 2006/11/25 00:30:18:497714: ifd: ifdhandler.c: 541:IFDHICCPresence(): IFDHPresence: Lun 0 [000012b3] 2006/11/25 00:30:18:530760: ifd: ifdhandler.c: 268:IFDHGetCapabilities(): IFDHGetCapabilities: Lun 0, Tag 4014, Length -1209601676 [000012b3] 2006/11/25 00:30:18:530857: ifd: ifdhandler.c: 541:IFDHICCPresence(): IFDHPresence: Lun 0 [000012b3] 2006/11/25 00:30:18:564695: ifd: ifdhandler.c: 541:IFDHICCPresence(): IFDHPresence: Lun 0 [000012b3] 2006/11/25 00:30:18:598668: ifd: ifdhandler.c: 327:IFDHPowerICC(): IFDHPowerICC: Lun 0, Action 500, ATR Length -1208139672 [000012b3] 2006/11/25 00:30:18:750881: ifd: ifdhandler.c: 541:IFDHICCPresence(): IFDHPresence: Lun 0 [000012b3] 2006/11/25 00:30:18:785350: ifd: ifdhandler.c: 541:IFDHICCPresence(): IFDHPresence: Lun 0 [000012b3] 2006/11/25 00:30:18:821338: ifd: ifdhandler.c: 541:IFDHICCPresence(): IFDHPresence: Lun 0 [000012b3] 2006/11/25 00:30:18:853340: ifd: ifdhandler.c: 541:IFDHICCPresence(): IFDHPresence: Lun 0 [000012b3] 2006/11/25 00:30:18:885343: ifd: ifdhandler.c: 541:IFDHICCPresence(): IFDHPresence: Lun 0 [000012b3] 2006/11/25 00:30:18:921334: ifd: ifdhandler.c: 541:IFDHICCPresence(): IFDHPresence: Lun 0 [000012b3] 2006/11/25 00:30:18:957337: ifd: ifdhandler.c: 541:IFDHICCPresence(): IFDHPresence: Lun 0 [000012b3] 2006/11/25 00:30:18:989335: ifd: ifdhandler.c: 541:IFDHICCPresence(): IFDHPresence: Lun 0 [...] [000012b3] 2006/11/25 00:30:36:853440: ifd: ifdhandler.c: 541:IFDHICCPresence(): IFDHPresence: Lun 0 [000012b3] 2006/11/25 00:30:36:889432: ifd: ifdhandler.c: 541:IFDHICCPresence(): IFDHPresence: Lun 0 [000012b3] 2006/11/25 00:30:36:920879: ifd: ifdhandler.c: 268:IFDHGetCapabilities(): IFDHGetCapabilities: Lun 0, Tag 4015, Length -1209601820 [000012b3] 2006/11/25 00:30:36:921099: ifd: ifdhandler.c: 185:IFDHCreateChannelByName(): IFDHCreateChannelByName: Lun 0, Device usb:0c4b/0300:libusb:004:002 [000012b3] 2006/11/25 00:30:36:921227: ifd: ifdhandler.c: 213:IFDHCreateChannelByName(): ERROR: The LUN 0 is already in use! [000012b3] 2006/11/25 00:30:36:921557: ifd: ifdhandler.c: 541:IFDHICCPresence(): IFDHPresence: Lun 0 [...] [000012b3] 2006/11/25 00:30:43:105463: ifd: ifdhandler.c: 541:IFDHICCPresence(): IFDHPresence: Lun 0 [000012b3] 2006/11/25 00:30:43:161784: ifd: ifdhandler.c: 235:IFDHCloseChannel(): IFDHCloseChannel: Lun 0
[EMAIL PROTECTED]:~# pcscd -d -f pcscdaemon.c:259:main() pcscd set to foreground with debug send to stderr pcscdaemon.c:464:main() pcsc-lite 1.3.1 daemon ready. hotplug_libusb.c:407:HPAddHotPluggable() Adding USB device: 003:002 readerfactory.c:1095:RFInitializeReader() Attempting startup of REINER SCT CyberJack 00 00. readerfactory.c:967:RFBindFunctions() Loading IFD Handler 3.0 Card ATR: 3B FF 18 00 FF 81 31 3C 45 65 63 0D 02 31 02 50 00 10 39 13 50 10 04 10 D5 hotplug_libusb.c:407:HPAddHotPluggable() Adding USB device: 004:002 readerfactory.c:1095:RFInitializeReader() Attempting startup of ������ readerfactory.c:967:RFBindFunctions() Loading IFD Handler 3.0 readerfactory.c:1130:RFInitializeReader() Open Port 200001 Failed (usb:0c4b/0300:libusb:004:002) readerfactory.c:1012:RFUnloadReader() Unloading reader driver. readerfactory.c:251:RFAddReader() REINER SCT CyberJack pp_a (1211213905) init failed. pcscdaemon.c:529:signal_trap() Preparing for suicide hotplug_libusb.c:361:HPEstablishUSBNotifications() Hotplug stopped readerfactory.c:1350:RFCleanupReaders() entering cleaning function readerfactory.c:1359:RFCleanupReaders() Stopping reader: REINER SCT CyberJack 00 00 eventhandler.c:121:EHDestroyEventHandler() Stomping thread. eventhandler.c:150:EHDestroyEventHandler() Thread stomped. readerfactory.c:1142:RFUnInitializeReader() Attempting shutdown of REINER SCT CyberJack 00 00. readerfactory.c:1012:RFUnloadReader() Unloading reader driver. pcscdaemon.c:489:at_exit() cleaning /var/run
_______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
