Hello all.

I just got my hands on an ACR83 reader.  Note this is a different model
than the ACR38.  It has a built-in pinpad in a really small form factor.

I was disappointed to see it seems to only have Windows drivers.  I
thought I'd take a stab at adding support to libccid.  I'm making some
progress, but could use some advice.

I downloaded the latest versions of libccid and pcscd and got them
compiled and installed on my debian 6 system.

Originally libccid wouldn't detect the smartcard at all because it was
returning a USB class code of 0x0 instead of 0xb.  A quick read of the
USB spec said that this is okay if the interface descriptions return the
correct info.

As a hackey non-production quality fix, I added some code to
get_ccid_usb_interface in ccid_usb.c that will accept class 0x0 as well
as 0xb.  After that, I did seem to detect the card and get reasonable
info for smartcard capabilities.  (I'll post the full text of
./src/parse at the end of this post.)

After that, I was able to manually run pcscd in the foreground with
debug info.  At this point, we actually do seem to see the card and it
seems to be smart enough to detect when I remove and insert my openPGP
smartcard.  So there's some progress.

But when I try to issue a command like "echo foo | gpg2 --clearsign",
one of the internal commands times out:

00000007 towitoko/atr.c:329:ATR_GetDefaultProtocol() default protocol: T=1
00000008 PPS: Sending request: FF 11 18 F6
00000019 -> 000000 6F 04 00 00 00 00 15 00 00 00 FF 11 18 F6
05001137 ccid_usb.c:614:WriteUSB() write AAA failed (3/5): -7 Success

(Whole pcscd log follows.)

I'm getting in pretty far over my head, this code is all new to me.  If
anyone has any pointers as to what I should be looking at, I'd
appreciate it.  Also let me know if I'm doing anything stupid in the way
I've setup my dev environment.

Thanks a million,

Grant

=======================
Full ./src/parse Output
=======================

grant@johnyaya:~/Downloads/ccid-1.4.1$ sudo ./src/parse
Parsing USB bus/device: 1D6B:0001 (bus 1, device 1)
 idVendor:  0x1D6B  iManufacturer: Linux 2.6.32-5-686 uhci_hcd
 idProduct: 0x0001  iProduct: UHCI Host Controller
PREPPING TO SHCAN INTERFACES
trying interface 0
interface class 9
  NOT a CCID/ICCD device
Parsing USB bus/device: 1D6B:0001 (bus 2, device 1)
 idVendor:  0x1D6B  iManufacturer: Linux 2.6.32-5-686 uhci_hcd
 idProduct: 0x0001  iProduct: UHCI Host Controller
PREPPING TO SHCAN INTERFACES
trying interface 0
interface class 9
  NOT a CCID/ICCD device
Parsing USB bus/device: 1D6B:0001 (bus 3, device 1)
 idVendor:  0x1D6B  iManufacturer: Linux 2.6.32-5-686 uhci_hcd
 idProduct: 0x0001  iProduct: UHCI Host Controller
PREPPING TO SHCAN INTERFACES
trying interface 0
interface class 9
  NOT a CCID/ICCD device
Parsing USB bus/device: 1D6B:0001 (bus 4, device 1)
 idVendor:  0x1D6B  iManufacturer: Linux 2.6.32-5-686 uhci_hcd
 idProduct: 0x0001  iProduct: UHCI Host Controller
PREPPING TO SHCAN INTERFACES
trying interface 0
interface class 9
  NOT a CCID/ICCD device
Parsing USB bus/device: 1D6B:0002 (bus 5, device 1)
 idVendor:  0x1D6B  iManufacturer: Linux 2.6.32-5-686 ehci_hcd
 idProduct: 0x0002  iProduct: EHCI Host Controller
PREPPING TO SHCAN INTERFACES
trying interface 0
interface class 9
  NOT a CCID/ICCD device
Parsing USB bus/device: 0557:8021 (bus 3, device 2)
 idVendor:  0x0557  Can't get iManufacturer string
 idProduct: 0x8021  Can't get iProduct string
PREPPING TO SHCAN INTERFACES
trying interface 0
interface class 9
  NOT a CCID/ICCD device
Parsing USB bus/device: 05E3:0608 (bus 3, device 3)
 idVendor:  0x05E3  iManufacturer: ?
 idProduct: 0x0608  iProduct: USB2.0 Hub
PREPPING TO SHCAN INTERFACES
trying interface 0
interface class 9
  NOT a CCID/ICCD device
Parsing USB bus/device: 045E:00DB (bus 3, device 4)
 idVendor:  0x045E  iManufacturer: Microsoft
 idProduct: 0x00DB  iProduct: Natural� Ergonomic Keyboard 4000
PREPPING TO SHCAN INTERFACES
trying interface 0
interface class 3
trying interface 1
interface class 3
trying interface 2
interface class 3
  NOT a CCID/ICCD device
Parsing USB bus/device: 072F:90D2 (bus 3, device 5)
 idVendor:  0x072F  iManufacturer: ACS
 idProduct: 0x90D2  iProduct: ACR83 USB Reader
PREPPING TO SHCAN INTERFACES
trying interface 0
interface class 0
  Found a CCID/ICCD device at interface 0
 idVendor: 0x072F
  iManufacturer: ACS
 idProduct: 0x90D2
  iProduct: ACR83 USB Reader
 bcdDevice: 46.0C (firmware release?)
PREPPING TO SHCAN INTERFACES
trying interface 0
interface class 0
 bLength: 9
 bDescriptorType: 4
 bInterfaceNumber: 0
 bAlternateSetting: 0
 bNumEndpoints: 3
  bulk-IN, bulk-OUT and Interrupt-IN
 bInterfaceClass: 0x00 [Chip Card Interface Device Class (CCID)]
 bInterfaceSubClass: 0
 bInterfaceProtocol: 0
  bulk transfer, optional interrupt-IN (CCID)
 iInterface: 0 ?
 CCID Class Descriptor
  bLength: 0x36
  bDescriptorType: 0x21
  bcdCCID: 1.00
  bMaxSlotIndex: 0x00
  bVoltageSupport: 0x07
   5.0V
   3.0V
   1.8V
  dwProtocols: 0x0000 0x0003
   T=0
   T=1
  dwDefaultClock: 4.000 MHz
  dwMaximumClock: 4.000 MHz
  bNumClockSupported: 0 (will use whatever is returned)
   IFD does not support GET CLOCK FREQUENCIES request: Success
  dwDataRate: 10752 bps
  dwMaxDataRate: 344100 bps
  bNumDataRatesSupported: 0 (will use whatever is returned)
   IFD does not support GET_DATA_RATES request: Success
  dwMaxIFSD: 247
  dwSynchProtocols: 0x00000000
  dwMechanical: 0x00000000
   No special characteristics
  dwFeatures: 0x00010030
   ....10 Automatic ICC clock frequency change according to parameters
   ....20 Automatic baud rate change according to frequency and Fi, Di
params
   01.... TPDU level exchange
  dwMaxCCIDMessageLength: 271 bytes
  bClassGetResponse: 0x00
  bClassEnveloppe: 0x00
  wLcdLayout: 0x0000
  bPINSupport: 0x03
   PIN Verification supported
   PIN Modification supported
  bMaxCCIDBusySlots: 1
PREPPING TO SHCAN INTERFACES
Parsing USB bus/device: 0461:4D46 (bus 3, device 6)
 idVendor:  0x0461  iManufacturer: ?
 idProduct: 0x4D46  iProduct: USB Optical Mouse
PREPPING TO SHCAN INTERFACES
trying interface 0
interface class 3
  NOT a CCID/ICCD device

=================
Full pcscd output
=================

grant@johnyaya:~$ sudo bash
Insert authentication card for user `grant'
[sudo] password for grant:
root@johnyaya:/home/grant# ps -Af | grep pcsc
root      3836     1  0 21:33 ?        00:00:00 pcscd --auto-exit
root      3848  3846  0 21:33 pts/2    00:00:00 grep pcsc
root@johnyaya:/home/grant# kill -9 3836
root@johnyaya:/home/grant# LIBCCID_ifdLogLevel=0x000F
root@johnyaya:/home/grant# export LIBCCID_ifdLogLevel
root@johnyaya:/home/grant# pcscd --foreground --debug --apdu
00000000 debuglog.c:277:DebugLogSetLevel() debug level=debug
00000039 debuglog.c:306:DebugLogSetCategory() Debug options: APDU
00000304 configfile.l:245:DBGetReaderListDir() Parsing conf directory:
/usr/local/etc/reader.conf.d
00000031 pcscdaemon.c:553:main() pcsc-lite 1.6.6 daemon ready.
00049510 hotplug_libhal.c:319:get_driver() Looking a driver for VID:
0x1D6B, PID: 0x0002
00002297 hotplug_libhal.c:319:get_driver() Looking a driver for VID:
0x1D6B, PID: 0x0001
00002293 hotplug_libhal.c:319:get_driver() Looking a driver for VID:
0x0557, PID: 0x8021
00001431 hotplug_libhal.c:319:get_driver() Looking a driver for VID:
0x045E, PID: 0x00DB
00001383 hotplug_libhal.c:319:get_driver() Looking a driver for VID:
0x045E, PID: 0x00DB
00003031 hotplug_libhal.c:319:get_driver() Looking a driver for VID:
0x045E, PID: 0x00DB
00003459 hotplug_libhal.c:319:get_driver() Looking a driver for VID:
0x05E3, PID: 0x0608
00002117 hotplug_libhal.c:319:get_driver() Looking a driver for VID:
0x0461, PID: 0x4D46
00002663 hotplug_libhal.c:319:get_driver() Looking a driver for VID:
0x072F, PID: 0x90D2
00000019 hotplug_libhal.c:367:HPAddDevice() Adding USB device:
usb_device_72f_90d2_noserial_if0
00003106 readerfactory.c:931:RFInitializeReader() Attempting startup of
ACS ACR83 USB Reader 00 00 using
/usr/local/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00000329 readerfactory.c:821:RFBindFunctions() Loading IFD Handler 3.0
00000068 ifdhandler.c:1727:init_driver() Driver version: 1.4.1
00000647 ifdhandler.c:1745:init_driver() LogLevel: 0x0003
00000015 ifdhandler.c:1755:init_driver() LogLevel from
LIBCCID_ifdLogLevel: 0x000F
00000012 ifdhandler.c:1766:init_driver() DriverOptions: 0x0000
00000090 ifdhandler.c:79:IFDHCreateChannelByName() lun: 0, device:
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
00000017 ccid_usb.c:178:OpenUSBByName() Reader index: 0, Device:
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
00000397 ccid_usb.c:266:OpenUSBByName() ifdManufacturerString: Ludovic
Rousseau ([email protected])
00000013 ccid_usb.c:267:OpenUSBByName() ifdProductString: Generic CCID
driver
00000009 ccid_usb.c:268:OpenUSBByName() Copyright: This driver is
protected by terms of the GNU Lesser General Public License version 2.1,
or (at your option) any later version.
00001062 ccid_usb.c:378:OpenUSBByName() Checking device: 3/5
00000010 ccid_usb.c:433:OpenUSBByName() Trying to open USB bus/device: 3/5
PREPPING TO SHCAN INTERFACES
trying interface 0
interface class 0
00000149 ccid_usb.c:499:OpenUSBByName() Found Vendor/Product: 072F/90D2
(ACS ACR83 USB Reader)
00000009 ccid_usb.c:501:OpenUSBByName() Using USB bus/device: 3/5
PREPPING TO SHCAN INTERFACES
trying interface 0
interface class 0
00000016 ccid_usb.c:978:ControlUSB() request: 0x03
00002869 receive:
00000012 ccid_usb.c:922:get_data_rates() IFD does not support
GET_DATA_RATES request: 0
00000015 ccid_usb.c:1018:InterruptRead() before (0)
00101989 ccid_usb.c:1060:InterruptRead() after (0) (2)
00000029 -> 000000 65 00 00 00 00 00 00 00 00 00
00001951 <- 000000 80 00 00 00 00 00 15 40 FE 00
00000017 ifdhandler.c:401:IFDHGetCapabilities() tag: 0xFB3,
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000010 readerfactory.c:293:RFAddReader() Using the reader polling thread
00000017 ifdhandler.c:1590:IFDHICCPresence()
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000011 -> 000000 65 00 00 00 00 00 01 00 00 00
00001951 <- 000000 81 00 00 00 00 00 00 00 00 00
00000011 ccid_usb.c:675:ReadUSB() Duplicate frame detected
00000985 <- 000000 81 00 00 00 00 00 01 00 00 00
00000009 ifdhandler.c:1708:IFDHICCPresence() Card present
00000072 ifdhandler.c:401:IFDHGetCapabilities() tag: 0xFAE,
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000015 ifdhandler.c:489:IFDHGetCapabilities() Reader supports 1 slot(s)
00000024 ifdhandler.c:1590:IFDHICCPresence()
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000029 -> 000000 65 00 00 00 00 00 02 00 00 00
00001862 <- 000000 81 00 00 00 00 00 02 00 00 00
00000016 ifdhandler.c:1708:IFDHICCPresence() Card present
00000013 ifdhandler.c:1590:IFDHICCPresence()
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000018 -> 000000 65 00 00 00 00 00 03 00 00 00
00001185 hotplug_libhal.c:319:get_driver() Looking a driver for VID:
0x1D6B, PID: 0x0001
00000772 <- 000000 81 00 00 00 00 00 03 00 00 00
00000017 ifdhandler.c:1708:IFDHICCPresence() Card present
00000014 ifdhandler.c:1146:IFDHPowerICC() action: PowerUp,
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000023 -> 000000 62 00 00 00 00 00 04 01 00 00
00001511 hotplug_libhal.c:319:get_driver() Looking a driver for VID:
0x1D6B, PID: 0x0001
00002715 hotplug_libhal.c:319:get_driver() Looking a driver for VID:
0x1D6B, PID: 0x0001
00006012 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010092 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010093 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010083 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010076 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010085 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010084 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010076 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010087 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010083 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010076 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010085 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010082 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010079 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010085 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010082 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010078 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010089 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010083 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010083 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010088 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010081 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00010079 readerfactory.c:1298:RFWaitForReaderInit() Waiting init for
reader: ACS ACR83 USB Reader 00 00
00004908 <- 000000 80 15 00 00 00 00 04 00 00 00 3B DA 18 FF 81 B1 FE 75
1F 03 00 31 C5 73 C0 01 40 00 90 00 0C
00000061 eventhandler.c:259:EHStatusHandlerThread() powerState:
POWER_STATE_POWERED
00000023 Card ATR: 3B DA 18 FF 81 B1 FE 75 1F 03 00 31 C5 73 C0 01 40 00
90 00 0C
00000014 ifdhandler.c:1590:IFDHICCPresence()
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000018 -> 000000 65 00 00 00 00 00 05 00 00 00
00001877 <- 000000 81 00 00 00 00 00 05 00 00 00
00000035 ifdhandler.c:1708:IFDHICCPresence() Card present
00000017 ifdhandler.c:331:IFDHPolling()
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0) 5000 ms
00000015 ccid_usb.c:1018:InterruptRead() before (0)
05001897 ccid_usb.c:1060:InterruptRead() after (0) (2)
00000022 ifdhandler.c:1590:IFDHICCPresence()
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000015 -> 000000 65 00 00 00 00 00 06 00 00 00
00002945 <- 000000 81 00 00 00 00 00 06 00 00 00
00000011 ifdhandler.c:1708:IFDHICCPresence() Card present
00000010 ifdhandler.c:1146:IFDHPowerICC() action: PowerDown,
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000011 -> 000000 63 00 00 00 00 00 07 00 00 00
00097998 <- 000000 81 00 00 00 00 00 07 01 00 00
00000024 eventhandler.c:449:EHStatusHandlerThread() powerState:
POWER_STATE_UNPOWERED
00000012 ifdhandler.c:1590:IFDHICCPresence()
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000012 -> 000000 65 00 00 00 00 00 08 00 00 00
00001920 <- 000000 81 00 00 00 00 00 08 01 00 00
00000011 ifdhandler.c:1708:IFDHICCPresence() Card present
00000009 ifdhandler.c:331:IFDHPolling()
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0) 600000 ms
00000008 ccid_usb.c:1018:InterruptRead() before (0)
00243996 ccid_usb.c:1060:InterruptRead() after (0) (0)
00000021 NotifySlotChange: 50 02
00000011 ifdhandler.c:1590:IFDHICCPresence()
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000013 -> 000000 65 00 00 00 00 00 09 00 00 00
00002940 <- 000000 81 00 00 00 00 00 09 02 00 00
00000018 ifdhandler.c:1708:IFDHICCPresence() Card absent
00000014 eventhandler.c:328:EHStatusHandlerThread() Card Removed From
ACS ACR83 USB Reader 00 00
00000016 ifdhandler.c:331:IFDHPolling()
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0) 600000 ms
00000013 ccid_usb.c:1018:InterruptRead() before (0)
04604935 ccid_usb.c:1060:InterruptRead() after (0) (0)
00000019 NotifySlotChange: 50 03
00000011 ifdhandler.c:1590:IFDHICCPresence()
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000013 -> 000000 65 00 00 00 00 00 0A 00 00 00
00002934 <- 000000 81 00 00 00 00 00 0A 01 00 00
00000016 ifdhandler.c:1708:IFDHICCPresence() Card present
00000014 ifdhandler.c:1590:IFDHICCPresence()
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000018 -> 000000 65 00 00 00 00 00 0B 00 00 00
00001948 <- 000000 81 00 00 00 00 00 0B 01 00 00
00000011 ifdhandler.c:1708:IFDHICCPresence() Card present
00000008 ifdhandler.c:1146:IFDHPowerICC() action: PowerUp,
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000013 -> 000000 62 00 00 00 00 00 0C 01 00 00
00250006 <- 000000 80 15 00 00 00 00 0C 00 00 00 3B DA 18 FF 81 B1 FE 75
1F 03 00 31 C5 73 C0 01 40 00 90 00 0C
00000026 eventhandler.c:375:EHStatusHandlerThread() powerState:
POWER_STATE_POWERED
00000009 eventhandler.c:390:EHStatusHandlerThread() Card inserted into
ACS ACR83 USB Reader 00 00
00000013 Card ATR: 3B DA 18 FF 81 B1 FE 75 1F 03 00 31 C5 73 C0 01 40 00
90 00 0C
00000010 ifdhandler.c:331:IFDHPolling()
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0) 5000 ms
00000009 ccid_usb.c:1018:InterruptRead() before (0)
00016910 ccid_usb.c:1060:InterruptRead() after (0) (0)
00000018 NotifySlotChange: 50 03
00000011 ifdhandler.c:1590:IFDHICCPresence()
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000012 -> 000000 65 00 00 00 00 00 0D 00 00 00
00002946 <- 000000 81 00 00 00 00 00 0D 00 00 00
00000012 ifdhandler.c:1708:IFDHICCPresence() Card present
00000010 ifdhandler.c:1146:IFDHPowerICC() action: PowerDown,
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000011 -> 000000 63 00 00 00 00 00 0E 00 00 00
00098000 <- 000000 81 00 00 00 00 00 0E 01 00 00
00000023 eventhandler.c:449:EHStatusHandlerThread() powerState:
POWER_STATE_UNPOWERED
00000012 ifdhandler.c:1590:IFDHICCPresence()
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000011 -> 000000 65 00 00 00 00 00 0F 00 00 00
00001924 <- 000000 81 00 00 00 00 00 0F 01 00 00
00000012 ifdhandler.c:1708:IFDHICCPresence() Card present
00000010 ifdhandler.c:331:IFDHPolling()
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0) 600000 ms
00000007 ccid_usb.c:1018:InterruptRead() before (0)
13457687 winscard_msg_srv.c:202:ProcessEventsServer() Common channel
packet arrival
00000036 winscard_msg_srv.c:214:ProcessEventsServer()
ProcessCommonChannelRequest detects: 9
00000011 pcscdaemon.c:93:SVCServiceRunLoop() A new context thread
creation is requested: 9
00000063 winscard_svc.c:296:ContextThread() Thread is started:
dwClientID=9, threadContext @9751590
00000030 winscard_svc.c:314:ContextThread() Received command:
CMD_VERSION from client 9
00000018 winscard_svc.c:326:ContextThread() Client is protocol version 4:2
00000013 winscard_svc.c:346:ContextThread() CMD_VERSION rv=0x0 for client 9
00000059 winscard_svc.c:314:ContextThread() Received command:
ESTABLISH_CONTEXT from client 9
00000031 winscard.c:193:SCardEstablishContext() Establishing Context:
0x1033493
00000009 winscard_svc.c:402:ContextThread() ESTABLISH_CONTEXT rv=0x0 for
client 9
00000051 winscard_svc.c:314:ContextThread() Received command:
CMD_GET_READERS_STATE from client 9
00000052 winscard_svc.c:314:ContextThread() Received command:
CMD_GET_READERS_STATE from client 9
00000080 winscard_svc.c:314:ContextThread() Received command: CONNECT
from client 9
00000026 winscard.c:235:SCardConnect() Attempting Connect to ACS ACR83
USB Reader 00 00 using protocol: 3
00000013 ifdhandler.c:1590:IFDHICCPresence()
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000013 -> 000000 65 00 00 00 00 00 10 00 00 00
00002737 <- 000000 81 00 00 00 00 00 10 01 00 00
00000012 ifdhandler.c:1708:IFDHICCPresence() Card present
00000010 ifdhandler.c:1146:IFDHPowerICC() action: PowerUp,
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000012 -> 000000 62 00 00 00 00 00 11 01 00 00
00250005 <- 000000 80 15 00 00 00 00 11 00 00 00 3B DA 18 FF 81 B1 FE 75
1F 03 00 31 C5 73 C0 01 40 00 90 00 0C
00000025 winscard.c:309:SCardConnect() power up complete.
00000014 Card ATR: 3B DA 18 FF 81 B1 FE 75 1F 03 00 31 C5 73 C0 01 40 00
90 00 0C
00000007 winscard.c:328:SCardConnect() powerState: POWER_STATE_INUSE
00000009 prothandler.c:128:PHSetProtocol() Attempting PTS to T=1
00000017 ifdhandler.c:695:IFDHSetProtocolParameters() protocol T=1,
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000013 ifdhandler.c:1863:extra_egt() Extra EGT patch applied
00000008 ifdhandler.c:816:IFDHSetProtocolParameters() Set speed to
129032 bauds
00000007 towitoko/atr.c:329:ATR_GetDefaultProtocol() default protocol: T=1
00000008 PPS: Sending request: FF 11 18 F6
00000021 -> 000000 6F 04 00 00 00 00 12 00 00 00 FF 11 18 F6
00010043 <- 000000 80 04 00 00 00 00 12 00 00 00 FF 11 18 F6
00000023 PPS: Receiving confirm: FF 11 18 F6
00000014 ifdhandler.c:973:IFDHSetProtocolParameters() BWI/CWI (TB3)
present: 0x75
00000014 ifdhandler.c:1011:IFDHSetProtocolParameters() Timeout: 11541 ms
00000011 commands.c:2086:SetParameters() length: 7 bytes
00000026 -> 000000 61 07 00 00 00 00 13 01 00 00 18 10 02 75 00 20 00
00001919 <- 000000 82 07 00 00 00 00 13 00 00 01 18 10 FF 75 00 FE 00
00000019 ifdhandler.c:1075:IFDHSetProtocolParameters() Negociate IFSD at 247
00000023 sending: 00 C1 01 F7 37
00000021 -> 000000 6F 05 00 00 00 00 14 00 00 00 00 C1 01 F7 37
00011946 <- 000000 80 02 00 00 00 00 14 00 00 00 6D 00
00000015 received: 6D 00
00000009 sending: 00 C1 01 F7 37
00000012 -> 000000 6F 05 00 00 00 00 15 00 00 00 00 C1 01 F7 37
00007072 <- 000000 80 02 00 00 00 00 15 00 00 00 6D 00
00000024 received: 6D 00
00000011 sending: 00 C1 01 F7 37
00000013 -> 000000 6F 05 00 00 00 00 16 00 00 00 00 C1 01 F7 37
00006922 <- 000000 80 02 00 00 00 00 16 00 00 00 6D 00
00000018 received: 6D 00
00000011 prothandler.c:144:PHSetProtocol() PTS failed (612), using T=1
00000010 winscard_svc.c:443:ContextThread() CONNECT rv=0x80100066 for
client 9
00000080 winscard_svc.c:314:ContextThread() Received command:
RELEASE_CONTEXT from client 9
00000022 winscard.c:204:SCardReleaseContext() Releasing Context: 0x1033493
00000012 winscard_svc.c:417:ContextThread() RELEASE_CONTEXT rv=0x0 for
client 9
00000045 winscard_svc.c:306:ContextThread() Client die: 9
00000026 winscard_svc.c:912:MSGCleanupClient() Thread is stopping:
dwClientID=9, threadContext @9751590
00000014 winscard_svc.c:918:MSGCleanupClient() Freeing SCONTEXT @9751590
00407644 winscard_msg_srv.c:202:ProcessEventsServer() Common channel
packet arrival
00000032 winscard_msg_srv.c:214:ProcessEventsServer()
ProcessCommonChannelRequest detects: 9
00000014 pcscdaemon.c:93:SVCServiceRunLoop() A new context thread
creation is requested: 9
00000102 winscard_svc.c:296:ContextThread() Thread is started:
dwClientID=9, threadContext @9750580
00000044 winscard_svc.c:314:ContextThread() Received command:
CMD_VERSION from client 9
00000030 winscard_svc.c:326:ContextThread() Client is protocol version 4:2
00000013 winscard_svc.c:346:ContextThread() CMD_VERSION rv=0x0 for client 9
00000067 winscard_svc.c:314:ContextThread() Received command:
ESTABLISH_CONTEXT from client 9
00000029 winscard.c:193:SCardEstablishContext() Establishing Context:
0x103A8C9
00000013 winscard_svc.c:402:ContextThread() ESTABLISH_CONTEXT rv=0x0 for
client 9
00000061 winscard_svc.c:314:ContextThread() Received command:
CMD_GET_READERS_STATE from client 9
00000054 winscard_svc.c:314:ContextThread() Received command:
CMD_GET_READERS_STATE from client 9
00000102 winscard_svc.c:314:ContextThread() Received command: CONNECT
from client 9
00000032 winscard.c:235:SCardConnect() Attempting Connect to ACS ACR83
USB Reader 00 00 using protocol: 3
00000015 winscard.c:328:SCardConnect() powerState: POWER_STATE_INUSE
00000015 prothandler.c:128:PHSetProtocol() Attempting PTS to T=1
00000015 ifdhandler.c:695:IFDHSetProtocolParameters() protocol T=1,
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000018 ifdhandler.c:1863:extra_egt() Extra EGT patch applied
00000013 ifdhandler.c:816:IFDHSetProtocolParameters() Set speed to
129032 bauds
00000012 towitoko/atr.c:329:ATR_GetDefaultProtocol() default protocol: T=1
00000017 PPS: Sending request: FF 11 18 F6
00000029 -> 000000 6F 04 00 00 00 00 17 00 00 00 FF 11 18 F6
11547131 ccid_usb.c:653:ReadUSB() read EE failed (3/5): -7 Success
00000021 ifdhandler.c:919:IFDHSetProtocolParameters() PPS_Exchange Failed
00000010 prothandler.c:144:PHSetProtocol() PTS failed (605), using T=1
00000010 winscard_svc.c:443:ContextThread() CONNECT rv=0x80100066 for
client 9
00000071 winscard_svc.c:314:ContextThread() Received command:
RELEASE_CONTEXT from client 9
00000021 winscard.c:204:SCardReleaseContext() Releasing Context: 0x103A8C9
00000013 winscard_svc.c:417:ContextThread() RELEASE_CONTEXT rv=0x0 for
client 9
00000044 winscard_svc.c:306:ContextThread() Client die: 9
00000026 winscard_svc.c:912:MSGCleanupClient() Thread is stopping:
dwClientID=9, threadContext @9750580
00000014 winscard_svc.c:918:MSGCleanupClient() Freeing SCONTEXT @9750580
00872651 winscard_msg_srv.c:202:ProcessEventsServer() Common channel
packet arrival
00000031 winscard_msg_srv.c:214:ProcessEventsServer()
ProcessCommonChannelRequest detects: 9
00000011 pcscdaemon.c:93:SVCServiceRunLoop() A new context thread
creation is requested: 9
00000051 winscard_svc.c:296:ContextThread() Thread is started:
dwClientID=9, threadContext @9750F10
00000030 winscard_svc.c:314:ContextThread() Received command:
CMD_VERSION from client 9
00000018 winscard_svc.c:326:ContextThread() Client is protocol version 4:2
00000011 winscard_svc.c:346:ContextThread() CMD_VERSION rv=0x0 for client 9
00000063 winscard_svc.c:314:ContextThread() Received command:
ESTABLISH_CONTEXT from client 9
00000022 winscard.c:193:SCardEstablishContext() Establishing Context:
0x103B8E5
00000009 winscard_svc.c:402:ContextThread() ESTABLISH_CONTEXT rv=0x0 for
client 9
00000054 winscard_svc.c:314:ContextThread() Received command:
CMD_GET_READERS_STATE from client 9
00000054 winscard_svc.c:314:ContextThread() Received command:
CMD_GET_READERS_STATE from client 9
00000092 winscard_svc.c:314:ContextThread() Received command: CONNECT
from client 9
00000025 winscard.c:235:SCardConnect() Attempting Connect to ACS ACR83
USB Reader 00 00 using protocol: 3
00000009 winscard.c:328:SCardConnect() powerState: POWER_STATE_INUSE
00000009 prothandler.c:128:PHSetProtocol() Attempting PTS to T=1
00000009 ifdhandler.c:695:IFDHSetProtocolParameters() protocol T=1,
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000013 ifdhandler.c:1863:extra_egt() Extra EGT patch applied
00000008 ifdhandler.c:816:IFDHSetProtocolParameters() Set speed to
129032 bauds
00000007 towitoko/atr.c:329:ATR_GetDefaultProtocol() default protocol: T=1
00000010 PPS: Sending request: FF 11 18 F6
00000018 -> 000000 6F 04 00 00 00 00 18 00 00 00 FF 11 18 F6
05001480 ccid_usb.c:614:WriteUSB() write AAA failed (3/5): -7 Success
00000021 ifdhandler.c:919:IFDHSetProtocolParameters() PPS_Exchange Failed
00000010 prothandler.c:144:PHSetProtocol() PTS failed (605), using T=1
00000010 winscard_svc.c:443:ContextThread() CONNECT rv=0x80100066 for
client 9
00000091 winscard_svc.c:314:ContextThread() Received command:
RELEASE_CONTEXT from client 9
00000024 winscard.c:204:SCardReleaseContext() Releasing Context: 0x103B8E5
00000016 winscard_svc.c:417:ContextThread() RELEASE_CONTEXT rv=0x0 for
client 9
00000103 winscard_svc.c:306:ContextThread() Client die: 9
00000025 winscard_svc.c:912:MSGCleanupClient() Thread is stopping:
dwClientID=9, threadContext @9750F10
00000014 winscard_svc.c:918:MSGCleanupClient() Freeing SCONTEXT @9750F10
00745662 winscard_msg_srv.c:202:ProcessEventsServer() Common channel
packet arrival
00000030 winscard_msg_srv.c:214:ProcessEventsServer()
ProcessCommonChannelRequest detects: 9
00000011 pcscdaemon.c:93:SVCServiceRunLoop() A new context thread
creation is requested: 9
00000050 winscard_svc.c:296:ContextThread() Thread is started:
dwClientID=9, threadContext @9750580
00000029 winscard_svc.c:314:ContextThread() Received command:
CMD_VERSION from client 9
00000018 winscard_svc.c:326:ContextThread() Client is protocol version 4:2
00000011 winscard_svc.c:346:ContextThread() CMD_VERSION rv=0x0 for client 9
00000056 winscard_svc.c:314:ContextThread() Received command:
ESTABLISH_CONTEXT from client 9
00000022 winscard.c:193:SCardEstablishContext() Establishing Context:
0x103F59E
00000009 winscard_svc.c:402:ContextThread() ESTABLISH_CONTEXT rv=0x0 for
client 9
00000051 winscard_svc.c:314:ContextThread() Received command:
CMD_GET_READERS_STATE from client 9
00000051 winscard_svc.c:314:ContextThread() Received command:
CMD_GET_READERS_STATE from client 9
00000087 winscard_svc.c:314:ContextThread() Received command: CONNECT
from client 9
00000025 winscard.c:235:SCardConnect() Attempting Connect to ACS ACR83
USB Reader 00 00 using protocol: 3
00000009 winscard.c:328:SCardConnect() powerState: POWER_STATE_INUSE
00000010 prothandler.c:128:PHSetProtocol() Attempting PTS to T=1
00000010 ifdhandler.c:695:IFDHSetProtocolParameters() protocol T=1,
usb:072f/90d2:libhal:/org/freedesktop/Hal/devices/usb_device_72f_90d2_noserial_if0
(lun: 0)
00000011 ifdhandler.c:1863:extra_egt() Extra EGT patch applied
00000009 ifdhandler.c:816:IFDHSetProtocolParameters() Set speed to
129032 bauds
00000006 towitoko/atr.c:329:ATR_GetDefaultProtocol() default protocol: T=1
00000009 PPS: Sending request: FF 11 18 F6
00000020 -> 000000 6F 04 00 00 00 00 19 00 00 00 FF 11 18 F6
^C00313324 pcscdaemon.c:679:signal_trap() Received signal: 2
00000016 pcscdaemon.c:684:signal_trap() Preparing for suicide
^C00239483 pcscdaemon.c:679:signal_trap() Received signal: 2
00000021 readerfactory.c:1251:RFCleanupReaders() entering cleaning function
00000009 readerfactory.c:1260:RFCleanupReaders() Stopping reader: ACS
ACR83 USB Reader 00 00
00000008 eventhandler.c:149:EHDestroyEventHandler() Stomping thread.
^C00840461 pcscdaemon.c:679:signal_trap() Received signal: 2
00000016 pcscdaemon.c:705:signal_trap() Forced suicide
00000008 pcscdaemon.c:631:at_exit() cleaning /var/run/pcscd
root@johnyaya:/home/grant# ^C
root@johnyaya:/home/grant#






Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to