<div dir="ltr"><div><div><div>2017-01-30 19:01 GMT+01:00 Uv Wildner <<a href="mailto:uv.wildner.ext@openlimit.com">uv.wildner.ext@openlimit.com</a>>:<br>><br>> Well its easy to specify the device for the docker container.... that's resolved already.<br>><br>> However, the IDs on the USB bus are not fixed for a physical device and cannot be used reliably for this.<br>><br>> So I don't know which card is in which physical USB device XXX on the bus.<br>><br>> But how can I find  the mapping from the physical device to a USB device id which I can give to the container to connect the right device.<br>> This was my original question. How to find this mapping!<br>><br>> I can list the devices on the usb bus.<br>><br>> I can list the enumerated readers... and read the contents of the inserted cards.<br>><br>> How the cards read with an enumerated card reader name are connected to a physical reader AKA ID on the usb bus is hidden in the stack!<br>> :(<br>><br>> As in your original answer... it does not seem possible.<br>> At least not within the pcsclite library.<br><br>I see your problem now.<br><br></div>Maybe you can use an "intelligent" USB hub that can control the power of each USB connector independently.<br></div>You power the USB devices one after the other and attach the newly found device in a new container.<br></div>Since you control what USB connector is powered up you know what smart card reader is concerned.<br><div><div><br></div><div>Could that work for you?<br><br></div><div><div>Bye<br><br></div><div>--<br> Dr. Ludovic Rousseau</div></div></div></div>