Discussion:
pscd and usbip
Ludovic Rousseau
2014-04-02 11:37:32 UTC
Permalink
Hi all,
Hello,
I am unable to have a remotized smartcard reader work with GNU/Debian
Linux. I am using usbip to remotize smartcard.
sudo usbip list -l
Local USB devices
=================
- busid 2-2 (046d:c016)
Logitech, Inc. : Optical Wheel Mouse (046d:c016)
2-2:1.0 -> usbhid
- busid 4-1 (072f:9000)
Advanced Card Systems, Ltd : ACR38 AC1038-based Smart Card Reader
(072f:9000)
4-1:1.0 -> usbip-host
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 072f:9000 Advanced Card Systems, Ltd ACR38
AC1038-based Smart Card Reader
On client pcscd detects the reader, but when the smartcard insertion
[...]
usb:072f/9000:libudev:0:/dev/bus/usb/001/003
usb:072f/9000:libudev:0:/dev/bus/usb/001/003
00000191 ccid_usb.c:309:OpenUSBByName() Manufacturer: Advanced Card
Systems Ltd.
00000083 ccid_usb.c:319:OpenUSBByName() ProductString: ACS CCID driver
00000081 ccid_usb.c:325:OpenUSBByName() Copyright: This driver is
protected by terms of the GNU Lesser General Public License version 2.1,
or (at your option) any later
00009106 ccid_usb.c:415:OpenUSBByName() Checking device: 001/003
001/003
00000020 ccid_usb.c:582:OpenUSBByName() Found Vendor/Product: 072F/9000
(ACS ACR38U)
00000002 ccid_usb.c:584:OpenUSBByName() Using USB bus/device: 001/003
00000005 acr38cmd.c:514:ACR38_SetCardVoltage() cardVoltage: 0
00000002 acr38cmd.c:595:ACR38_SetCardType() cardType: 0
00000006 -> 000000 01 01 00 00
05002705 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000087 -> 000000 01 01 00 00
05002843 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000060 -> 000000 01 01 00 00
05002952 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000118 -> 000000 01 01 00 00
05002927 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000109 -> 000000 01 01 00 00
05002913 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000079 -> 000000 01 01 00 00
05003060 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000061 -> 000000 01 01 00 00
05002925 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000096 -> 000000 01 01 00 00
05002967 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000133 -> 000000 01 01 00 00
05002864 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000104 -> 000000 01 01 00 00
05002968 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000080 ifdhandler.c:197:IFDHCreateChannelByName() failed
00000024 ccid_usb.c:1044:CloseUSB() Closing USB device: 001/003
00000042 ccid_usb.c:1059:CloseUSB() Last slot closed. Release resources
00000070 readerfactory.c:972:RFInitializeReader() Open Port 0x200000
Failed (usb:072f/9000:libudev:0:/dev/bus/usb/001/003)
[...]
What did I forget?
Should the combo pcscd + usbip work?
No idea.

The problem is more with your smart card reader driver.
Since you truncated the pcscd log I can't be sure what driver you use.
But it look like a driver from ACS.

Follow http://pcsclite.alioth.debian.org/pcsclite.html#support to
provide the complete information.

Bye
--
Dr. Ludovic Rousseau
Francesco Malvezzi
2014-04-02 12:47:51 UTC
Permalink
00000009 -> 000000 01 01 00 00
05002201 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/006): Resource
temporarily unavailable
No idea how to fix that.
thank you for your time,

Francesco
Ludovic Rousseau
2014-04-02 12:46:13 UTC
Permalink
[...]
Post by Ludovic Rousseau
Should the combo pcscd + usbip work?
No idea.
The problem is more with your smart card reader driver.
Since you truncated the pcscd log I can't be sure what driver you use.
But it look like a driver from ACS.
sudo apt-get install libacr38u
(it's a ACR-38UR reader)
But besides that, I think there is still a missing point.
00000009 -> 000000 01 01 00 00
05002201 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/006): Resource
temporarily unavailable

No idea how to fix that.

Bye
--
Dr. Ludovic Rousseau
Andreas Schwier
2014-04-02 12:57:06 UTC
Permalink
Hi Francesco,

we are using USBIP to access a SmartCard-HSM (actually a card reader +
card combo stick) from a virtual server (Debian Squeeze). That works
fine for us and we don't see "Resource temporarily unavailable" errors.

Could it be an issue with network connectivity ?

Andreas
Hi all,
I am unable to have a remotized smartcard reader work with GNU/Debian
Linux. I am using usbip to remotize smartcard.
sudo usbip list -l
Local USB devices
=================
- busid 2-2 (046d:c016)
Logitech, Inc. : Optical Wheel Mouse (046d:c016)
2-2:1.0 -> usbhid
- busid 4-1 (072f:9000)
Advanced Card Systems, Ltd : ACR38 AC1038-based Smart Card Reader
(072f:9000)
4-1:1.0 -> usbip-host
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 072f:9000 Advanced Card Systems, Ltd ACR38
AC1038-based Smart Card Reader
On client pcscd detects the reader, but when the smartcard insertion
[...]
usb:072f/9000:libudev:0:/dev/bus/usb/001/003
usb:072f/9000:libudev:0:/dev/bus/usb/001/003
00000191 ccid_usb.c:309:OpenUSBByName() Manufacturer: Advanced Card
Systems Ltd.
00000083 ccid_usb.c:319:OpenUSBByName() ProductString: ACS CCID driver
00000081 ccid_usb.c:325:OpenUSBByName() Copyright: This driver is
protected by terms of the GNU Lesser General Public License version 2.1,
or (at your option) any later
00009106 ccid_usb.c:415:OpenUSBByName() Checking device: 001/003
001/003
00000020 ccid_usb.c:582:OpenUSBByName() Found Vendor/Product: 072F/9000
(ACS ACR38U)
00000002 ccid_usb.c:584:OpenUSBByName() Using USB bus/device: 001/003
00000005 acr38cmd.c:514:ACR38_SetCardVoltage() cardVoltage: 0
00000002 acr38cmd.c:595:ACR38_SetCardType() cardType: 0
00000006 -> 000000 01 01 00 00
05002705 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000087 -> 000000 01 01 00 00
05002843 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000060 -> 000000 01 01 00 00
05002952 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000118 -> 000000 01 01 00 00
05002927 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000109 -> 000000 01 01 00 00
05002913 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000079 -> 000000 01 01 00 00
05003060 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000061 -> 000000 01 01 00 00
05002925 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000096 -> 000000 01 01 00 00
05002967 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000133 -> 000000 01 01 00 00
05002864 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000104 -> 000000 01 01 00 00
05002968 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000080 ifdhandler.c:197:IFDHCreateChannelByName() failed
00000024 ccid_usb.c:1044:CloseUSB() Closing USB device: 001/003
00000042 ccid_usb.c:1059:CloseUSB() Last slot closed. Release resources
00000070 readerfactory.c:972:RFInitializeReader() Open Port 0x200000
Failed (usb:072f/9000:libudev:0:/dev/bus/usb/001/003)
[...]
What did I forget?
Should the combo pcscd + usbip work?
thank you,
Francesco
_______________________________________________
Muscle mailing list
http://lists.musclecard.com/mailman/listinfo/muscle_lists.musclecard.com
--
--------- CardContact Software & System Consulting
|.##> <##.| Andreas Schwier
|# #| Schülerweg 38
|# #| 32429 Minden, Germany
|'##> <##'| Phone +49 571 56149
--------- http://www.cardcontact.de
http://www.tscons.de
http://www.openscdp.org
Francesco Malvezzi
2014-04-02 09:43:11 UTC
Permalink
Hi all,

I am unable to have a remotized smartcard reader work with GNU/Debian
Linux. I am using usbip to remotize smartcard.

On server (where the smartcard reader actually is):
sudo usbip list -l
Local USB devices
=================
- busid 2-2 (046d:c016)
Logitech, Inc. : Optical Wheel Mouse (046d:c016)
2-2:1.0 -> usbhid

- busid 4-1 (072f:9000)
Advanced Card Systems, Ltd : ACR38 AC1038-based Smart Card Reader
(072f:9000)
4-1:1.0 -> usbip-host

On client:
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 072f:9000 Advanced Card Systems, Ltd ACR38
AC1038-based Smart Card Reader

On client pcscd detects the reader, but when the smartcard insertion
event is not recognized:

[...]
00000006 ifdhandler.c:94:IFDHCreateChannelByName() lun: 0, device:
usb:072f/9000:libudev:0:/dev/bus/usb/001/003
00000005 ccid_usb.c:186:OpenUSBByName() Reader index: 0, Device:
usb:072f/9000:libudev:0:/dev/bus/usb/001/003
00000191 ccid_usb.c:309:OpenUSBByName() Manufacturer: Advanced Card
Systems Ltd.
00000083 ccid_usb.c:319:OpenUSBByName() ProductString: ACS CCID driver
00000081 ccid_usb.c:325:OpenUSBByName() Copyright: This driver is
protected by terms of the GNU Lesser General Public License version 2.1,
or (at your option) any later
00009106 ccid_usb.c:415:OpenUSBByName() Checking device: 001/003
00000006 ccid_usb.c:506:OpenUSBByName() Trying to open USB bus/device:
001/003
00000020 ccid_usb.c:582:OpenUSBByName() Found Vendor/Product: 072F/9000
(ACS ACR38U)
00000002 ccid_usb.c:584:OpenUSBByName() Using USB bus/device: 001/003
00000005 acr38cmd.c:514:ACR38_SetCardVoltage() cardVoltage: 0
00000002 acr38cmd.c:595:ACR38_SetCardType() cardType: 0
00000006 -> 000000 01 01 00 00
05002705 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000087 -> 000000 01 01 00 00
05002843 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000060 -> 000000 01 01 00 00
05002952 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000118 -> 000000 01 01 00 00
05002927 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000109 -> 000000 01 01 00 00
05002913 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000079 -> 000000 01 01 00 00
05003060 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000061 -> 000000 01 01 00 00
05002925 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000096 -> 000000 01 01 00 00
05002967 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000133 -> 000000 01 01 00 00
05002864 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000104 -> 000000 01 01 00 00
05002968 ccid_usb.c:875:WriteUSB() usb_bulk_write(001/003): Resource
temporarily unavailable
00000080 ifdhandler.c:197:IFDHCreateChannelByName() failed
00000024 ccid_usb.c:1044:CloseUSB() Closing USB device: 001/003
00000042 ccid_usb.c:1059:CloseUSB() Last slot closed. Release resources
00000070 readerfactory.c:972:RFInitializeReader() Open Port 0x200000
Failed (usb:072f/9000:libudev:0:/dev/bus/usb/001/003)
[...]

What did I forget?

Should the combo pcscd + usbip work?

thank you,

Francesco
Francesco Malvezzi
2014-04-02 12:19:32 UTC
Permalink
[...]
Post by Ludovic Rousseau
Should the combo pcscd + usbip work?
No idea.
The problem is more with your smart card reader driver.
Since you truncated the pcscd log I can't be sure what driver you use.
But it look like a driver from ACS.
it'all true: it's a driver from ACS and I forgot to install:

sudo apt-get install libacr38u

(it's a ACR-38UR reader)

But besides that, I think there is still a missing point.
Post by Ludovic Rousseau
Follow http://pcsclite.alioth.debian.org/pcsclite.html#support to
provide the complete information.
here you are:

http://pastebin.com/3cFYATBA

thank you,

Francesco

Loading...