<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-10-20 16:27 GMT+02:00 Thomas Capricelli <span dir="ltr"><<a href="mailto:orzel@freehackers.org" target="_blank">orzel@freehackers.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hello,<br></blockquote><div><br></div><div>Hello,<br><br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
(technical details at bottom)<br>
<br>
I just bought a reader on amazon. Some people in comments reported that it was working on ubuntu, and it's supposed to be CCID compliant, so I was pretty optimistic.<br>
<br>
Unfortunately, i haven't been able to do much yet. I'm suspecting a hardware problem, but I wanted to be sure, so here's a full report.<br>
<br>
The problem is the following : the card is found by pcsc_scan, but when i insert a card, it always report:<br>
<br>
Reader 0: Generic Smart Card Reader Interface [Smart Card Reader Interface] (20070818000000000) 00 00<br>
  Card state: Card inserted, Unresponsive card,<br>
<br>
I've tried:<br>
    * two different bank cards<br>
    * transportation card (French Navigo)<br>
    * (French) driving license card<br>
    * Health card (French Carte Vitale)<br>
(yes, I'm French<br>
<br>
And I got the same answer for each.<br>
<br>
Then I've tried a SIM Card, and quite surprisingly, it works well, totally reproducible:<br>
<br>
Reader 0: Generic Smart Card Reader Interface [Smart Card Reader Interface] (20070818000000000) 00 00<br>
  Card state: Card inserted,<br>
  ATR: 3B 16 94 71 01 01 06 02 00<br>
  ....<br>
<br>
So now i'm confused. I would say that most of the stack is working (usb, ccid driver, pcsc), and it even confirms i know how to put the card in (ths is not obvious, the connection pins could be either up or down).<br>
<br>
So either something is broken in hardware, or I'm missing some nifty configuration stuff for the driver.<br></blockquote><div><br></div><div>I would suspect a very limited hardware/firmware.<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I'm suspecting something related to voltage, so I've tried to change Info.plist as described in /usr/share/doc/ccid-1.4.15/README.bz2, unfortunately I've had no success so far. Actually, I'm not even sure my changes are taken into account. The documentation says that I need to unplug the (only one) driver i have and replug it, but I haven't seen any visual confirmation that something was reloaded.<br>
<br>
This file Info.plist has weird documentation. parameters are in hexa, like <string>0x0009</string>, but comments mention decimal numbers such as 16, 32 (so that they probably really are decimals).<br></blockquote><div><br></div><div>Now fixed. Thanks.<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
The only Windows OS I got is Windows 7 in a virtualbox. I tried this (you can route a physical usb device to the virtual machine). Windows installs some driver (CCID i guess) and then using python/pyscard i have the same kind of error (card present, but not answering)<br>
<br>
pcscd mentions to report but to "<a href="http://lists.musclecard.com" rel="noreferrer" target="_blank">lists.musclecard.com</a>", but this name doesn't resolve.<br></blockquote><div><br><br></div><div>Now fixed. Thanks.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
That's where I am. Any hint about what's happening or what I could try next ?<br></blockquote><div><br></div><div>Buy another model of reader.<br></div><div>Choose a reader from the "supported" list <a href="https://pcsclite.alioth.debian.org/ccid/supported.html">https://pcsclite.alioth.debian.org/ccid/supported.html</a><br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I'm available on irc/freenode as 'orzel' if needed.<br>
<br>
best regards,<br>
-- <br>
Thomas Capricelli <<a href="mailto:orzel@freehackers.org" target="_blank">orzel@freehackers.org</a>><br>
<a href="http://www.freehackers.org/thomas/" rel="noreferrer" target="_blank">http://www.freehackers.org/thomas/</a><br>
<br>
<br>
Technical information / detailed "bug report"<br>
<br>
Versions:<br>
ccid-1.4.20 (I tried ccid-1.4.15 as well)<br>
pcsc-lite-1.8.14 (I tried pcsc-lite-1.8.12 too)<br>
My reader is called "Lindy 42768", which is based on the Realtek stuff that seems pretty common<br>
in this kind of reader :<br>
    <a href="http://www.amazon.fr/gp/product/B003SW1IL2" rel="noreferrer" target="_blank">http://www.amazon.fr/gp/product/B003SW1IL2</a></blockquote><div><br><br></div><div>From one customer comment on Amazon I read:<br>" Il est possible de lire des cartes à puces, mais pour celui qui veut 
lire sa carte Vitale, bancaire ou autres, il faut s'abstenir, ce n'est 
pas ce produit qu'il lui faut. "</div></div><br></div><div class="gmail_extra">The best I can do is moved the reader from the "Should work but untested by me" list to the "Unsupported or partly supported CCID readers" list.<br></div><div class="gmail_extra">Done.<br clear="all"></div><div class="gmail_extra"><br></div><div class="gmail_extra">Bye,<br><br></div><div class="gmail_extra">-- <br><div class="gmail_signature"> Dr. Ludovic Rousseau</div>
</div></div>