<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2017-01-27 16:58 GMT+01:00 Uv Wildner <span dir="ltr"><<a href="mailto:uv.wildner.ext@openlimit.com" target="_blank">uv.wildner.ext@openlimit.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:#000000"><div>Hello,<br></div></div></div></blockquote><div><br></div><div>Hello,<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:#000000"><div><br>I need to identify the USB device to which a card reader with a specific card is connected.<br>I am pulling my hair out but cannot find any API call that provides this information.<br><br>on Ludovic's blog I find this: </div><div style="padding-left:30px"><a href="https://ludovicrousseau.blogspot.de/2010/05/what-is-in-pcsc-reader-name.html" target="_blank">https://ludovicrousseau.<wbr>blogspot.de/2010/05/what-is-<wbr>in-pcsc-reader-name.html</a></div><div><br></div><div>That does not work on my system though! <br>ubuntu xenial 4.4.0-59-generic x86_64</div><div><br>When I list my card readers I get the list of readers like this from SCardListReaders():</div><div style="padding-left:30px"><br>SCM Microsystems Inc. SCR 3310 00 00<br>SCM Microsystems Inc. SCR 3310 01 00</div><div style="padding-left:30px"><br></div><div>OK, so the readers are enumerated.<br>However, I need to know the <b>usb device id</b> to be able to connect the reader with the right card to the correct virtualization environment. <br></div><div><br></div><div style="padding-left:30px">Bus 002 Device 008: ID 04e6:5116 SCM Microsystems, Inc. SCR331-LC1 / SCR3310 SmartCard Reader<br>Bus 001 Device 005: ID 04e6:5116 SCM Microsystems, Inc. SCR331-LC1 / SCR3310 SmartCard Reader</div><div style="padding-left:30px"><br></div><div>I only know that the usb device id can change easily.<br><br>How do I find which USB device has been connected to the the instance of the SCardReader????<br><br>Any pointers greatly welcome.<br></div></div></div></blockquote><div><br></div><div>If your 2 readers are the exact same model and do not provide a serial number then I don't see a solution to differrentiate them.<br clear="all"></div></div><br></div><div class="gmail_extra">My question: why do you need to do that?<br><br></div><div class="gmail_extra">If you know the ATR of your "specific card" then you can get the ATR from your 2 readers and know in which reader your card is present.<br></div><div class="gmail_extra">If you use 2 cards with the same ATR in each reader then this will not work.<br><br></div><div class="gmail_extra">Bye<br></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"> Dr. Ludovic Rousseau</div>
</div></div>