Problem with Digicom card reader model EZ100PU

Hi,
I have tried (trial version) your software to share an USB Digicom card reader model EZ100PU in rdesktop.
This because one of our customers has a QNAP Nas and I want try your software before installing it in the Nas.

I have installed the trial version of vhuit64 on an Ubuntu 16.04 LTS system.
In the client, a VirtualBox vm with Windows 7 64 bit, I have installed the drivers of the card reader and your client vhui64.exe

If I connect the card reader to the host of the vm and then, with the menu of VirtualBox, attach the USB card reader to the vm, the card reader is correctly used.

If I start the server on Ubuntu (sudo ./vhusbdx86_64 -b) and the client on Windows 7, I can see all the USB devices that I have tested but NOT the card reader.
I connect to the vm with "rdesktop -u annalisa -p xxxx 192.168.1.132" but the USB hardware is not seen.
I do the test with the "Smart Card Reader Self Testing Program v.2.2" (EZPUChk.exe), I can't see the card reader.

If I install on Ubuntu the card reader driver 8E4479_LinuxEzUsb.tar.gz, and also pcscd, pcsc-tools, libacsccid1 and opensc, and I do
rdesktop -u annalisa -p xxxx -r scard 192.168.1.132
I can see the card reader, the card inserted and all works fine.

I think that I get the same result if I install your software on NAS: I don't agree to do this (the NAS is in production) and I'm interested only to share 1 USB device from an Ubuntu machine.

Do you have any solution?
Thanks in advance
(mr.) Andrea Treggia - Italia

#2

The hint, that you connect with rdesktop is the root cause.
Since years I know about this "feature" of Windows remote desktop connections, that smard card readers are dropped at time of RDC connect.
I'm using a lot of VMs without direct desktop nor USB hubs. The USB devices are passed through Digi USBAnywhere or VirtualHere

The only work arounds are to connect to the Desktop:
1. direct PC usage (not in my case)
2. use a VNC Viewer
3. In VMware vSphere use the build-in console

At the time, the Windows desktop is shared/open via RDC, the smart card readers are gone. Disconnecting RDC does not help for the Windows system, a reboot is required as well.

Don't ask me why, but it's an undocumented "feature" and not a bug in RDC. A valid reason could be for example, in case you have an ID Card on the Reader, you won't that someother can simply access the card.

#3

Thanks for your reply but may be that I don't understand you ...

My vm is a Windows 7 system running under VirtualBox in a Windows 10 machine.
My client is an Ubuntu 16.04 machine with rdesktop 1.8.3.

If I install on Ubuntu the drivers of the card reader, I can see and use it from the VM:
rdesktop .... -r scard
I can say that all is ok, but I must have the Linux card reader drivers.

Also, if I connect the card reader to the hardware that is hosting the VM and connect to it from the menu of VirtualBox, all work fine with a simple
rdesktop -u annalisa -p xxxx 192.168.1.132
But I don't want use the USB of the vm server.

If I run on the client (Ubuntu) the VirtualHere vhusbdx86_64 server (and connect to the client hardware the card reader) and on the Windows 7 VM the VirtualHere client, I can see the card reader but I can't communicate with it.

In my case I can't use VMware. VNC Viewer from Ubuntu to Windows can't resolve the problem as it can't share the USB devices connected to the client.

Two question, for your experience:
- you say that you use Digi USBAnywhere or VirtualHere: do you think that can change something if I install on QNAP the VirtualHere server (and put my USB card reader on QNAP) or the vhusbdx86_64 is the same?
- do you think that, as in the real scenario, if the Windows 7 VM run on an Ubuntu host, can change something?

Thanks for your opinion.
Andrea Treggia

#4

psy is right, you cannot use rdesktop (RDP) and use a secure card reader, microsoft blocks it. Just use vnc and see if it works then. I think it will