<html><head></head><body><a href="https://github.com/OpenSC/OpenSC/blob/master/src/libopensc/reader-pcsc.c#L950.">https://github.com/OpenSC/OpenSC/blob/master/src/libopensc/reader-pcsc.c#L950.</a><br><br><div class="gmail_quote">Am 27. Januar 2017 16:58:16 MEZ schrieb Uv Wildner <uv.wildner.ext@openlimit.com>:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hello,<br /><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;">https://ludovicrousseau.blogspot.de/2010/05/what-is-in-pcsc-reader-name.html</div><div><br data-mce-bogus="1" /></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 data-mce-bogus="1" /></div><div>OK, so the readers are enumerated.<br />However, I need to know the <strong>usb device id</strong> to be able to connect the reader with the right card to the correct virtualization environment. <br /></div><div><br data-mce-bogus="1" /></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 data-mce-bogus="1" /></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></blockquote></div><br>
-- <br>
Frank Morgner</body></html>