"Howdy" Howdy,

LR> The reader names are now (since version 1.4.6 of the driver) generated
LR> from the iManufacturer and iProduct strings from the USB descriptor.

/(See Bug #313684 ; for now, there's an easy workaround)/

I have the same card.. What happens is that HPAddDevice() appends
Interface and serial number,
and, in the end, makes the already long name of the card just a few
bytes over 93. RFAddReader checks
against this max and then refuses to go on if the name is longer..

(MAX_READERNAME is defined as 100 in pcsclite.h, minus space for the
numbers " YY ZZ" at the end makes for a max of 93)

I had been running with a patched version of pcscd for a few hours, one
that truncated iInterface to the first "word" (truncate at first space
char) from "CCID Interface" to "CCID" in our case, making the name just
short enough, and that makes the reader work perfectly. The seemed to
prove that the name length was the only problem. The patch was naive,
though, not for general use, as Ludovic quickly pointed out:

LR> "Your reader returns "CCID Interface" for the iInterface field.
Other readers return something else without
LR> "Interface" inside. So your modification is valid only for this
particular reader (and some others)."

.. and he gave me this, saner workaround:

LR> Maybe the simplest solution is to edit the file
LR> ccid/readers/supported_readers.txt and change the line:
LR> 0x04E6:0x5119:SCM Microsystems Inc. SCR3340 - ExpressCard54 Smart Card 
Reader
LR> to something shorter like
LR> 0x04E6:0x5119:SCM SCR3340 - ExpressCard54
*
LR> You can also directly edit
LR> /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist if you do     
<---- I did this, I removed "Smart Card Reader"
LR> not want to reinstall the CCID driver.*

LR> No need to recompile pcsc-lite in this case.

WKR
Frank.



On 06/23/12 07:10, Howdy Doody wrote:
> For some reason, since upgrading to F17, it seems, I can no longer use
> my card reader, and get this error:
>
> 00000000 readerfactory.c:126:RFAddReader() Reader name too long: 97
> chars instead of max 93
> 00000059 hotplug_libudev.c:379:HPAddDevice() Failed adding USB device:
> SCM Microsystems Inc. SCR3340 - ExpressCard54 Smart Card Reader
>
> rpmq pcsc
> pcsc-lite-1.8.3-1.fc17.x86_64
> pcsc-perl-1.4.12-3.fc17.x86_64
> pcsc-lite-devel-1.8.3-1.fc17.x86_64
> pcsc-lite-ccid-1.4.6-1.fc17.x86_64
> pcsc-tools-1.4.17-3.fc17.x86_64
> pcsc-lite-libs-1.8.3-1.fc17.x86_64
>
>
> If I open virtualbox and run win7 guest, I can use the card reader.
>
> What to do?
>
>
> _______________________________________________
> Muscle mailing list
> [email protected]
> http://lists.drizzle.com/mailman/listinfo/muscle
>


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

Reply via email to