Using Mythbuntu 12.04, added pcsclite using
apt-get install libpcsclite-dev pcsc-tools libpcsclite1 pcscd libccid
libssl-dev
libccid1.4.5-1
pcscd 1.7.4-2ubuntu2 (sorry).
First Omnikey 3121 works immediately, as proven by pcsc_scan. Now I
insert the 2nd Omnikey and see in syslog:
Jan 1 11:53:22 sat kernel: [60084.224182] usb 4-3: new full-speed USB
device number 6 using ohci_hcd
Jan 1 11:53:23 sat mtp-probe: checking bus 4, device 6:
"/sys/devices/pci0000:00/0000:00:12.0/usb4/4-3"
Jan 1 11:53:23 sat mtp-probe: bus: 4, device: 6 was not an MTP device
Jan 1 11:53:23 sat pcscd: ccid_usb.c:499:OpenUSBByName() Can't claim
interface 4/5: -6
However, when I issue pcsc_scan, both cards are displayed.
Now I boot my machine and only one works :-(.
If I unplug 1 Omnikey from its USB slot and boot, no error messages and
success.
When I unplug the working Omnikey and connect the second, again, success
after boot.
So I surmise that the hardware in both cardreaders is OK and pcsclite
works for one reader at a time.
With 2 readers plugged in, syslog shows after boot:
Jan 1 12:27:45 sat kernel: [ 2.121744] ehci_hcd: USB 2.0 'Enhanced'
Host Controller (EHCI) Driver
Jan 1 12:27:45 sat kernel: [ 2.121769] ehci_hcd 0000:00:12.2: PCI
INT B -> GSI 17 (level, low) -> IRQ 17
Jan 1 12:27:45 sat kernel: [ 2.121795] ehci_hcd 0000:00:12.2: EHCI
Host Controller
Jan 1 12:27:45 sat kernel: [ 2.121877] ehci_hcd 0000:00:12.2: new
USB bus registered, assigned bus number 1
Jan 1 12:27:45 sat kernel: [ 2.121888] ehci_hcd 0000:00:12.2:
applying AMD SB700/SB800/Hudson-2/3 EHCI dummy qh workaround
Jan 1 12:27:45 sat kernel: [ 2.121930] QUIRK: Enable AMD PLL fix
Jan 1 12:27:45 sat kernel: [ 2.121945] ehci_hcd 0000:00:12.2: debug
port 1
Jan 1 12:27:45 sat kernel: [ 2.121976] ehci_hcd 0000:00:12.2: irq
17, io mem 0xfe309000
Jan 1 12:27:45 sat kernel: [ 2.132060] ehci_hcd 0000:00:12.2: USB
2.0 started, EHCI 1.00
...
Jan 1 12:27:45 sat kernel: [ 2.144611] ehci_hcd 0000:00:16.2: irq
23, io mem 0xfe304000
Jan 1 12:27:45 sat kernel: [ 2.156056] ehci_hcd 0000:00:16.2: USB
2.0 started, EHCI 1.00
Jan 1 12:27:45 sat kernel: [ 2.156278] hub 3-0:1.0: USB hub found
Jan 1 12:27:45 sat kernel: [ 2.156286] hub 3-0:1.0: 4 ports detected
Jan 1 12:27:45 sat kernel: [ 2.156426] ohci_hcd: USB 1.1 'Open' Host
Controller (OHCI) Driver
Jan 1 12:27:45 sat kernel: [ 2.156450] ohci_hcd 0000:00:12.0: PCI
INT A -> GSI 18 (level, low) -> IRQ 18
Jan 1 12:27:45 sat kernel: [ 2.156476] ohci_hcd 0000:00:12.0: OHCI
Host Controller
Jan 1 12:27:45 sat kernel: [ 2.156558] ohci_hcd 0000:00:12.0: new
USB bus registered, assigned bus number 4
Jan 1 12:27:45 sat kernel: [ 2.156599] ohci_hcd 0000:00:12.0: irq
18, io mem 0xfe30a000
Jan 1 12:27:45 sat kernel: [ 2.216272] hub 4-0:1.0: USB hub found
Jan 1 12:27:45 sat kernel: [ 2.216283] hub 4-0:1.0: 5 ports detected
..
Jan 1 12:27:45 sat kernel: [ 3.260111] usb 4-5: new full-speed USB
device number 3 using ohci_hcd
..
Jan 1 12:27:51 sat pcscd: ccid_usb.c:499:OpenUSBByName() Can't claim
interface 4/2: -6
Jan 1 12:27:51 sat pcscd: ccid_usb.c:499:OpenUSBByName() Can't claim
interface 4/2: -6
Jan 1 12:27:51 sat pcscd: ccid_usb.c:499:OpenUSBByName() Can't claim
interface 4/3: -6
Jan 1 12:27:51 sat pcscd: ifdhandler.c:102:IFDHCreateChannelByName() failed
Jan 1 12:27:51 sat pcscd: readerfactory.c:965:RFInitializeReader() Open
Port 0x200001 Failed (usb:076b/3021:libudev:0:/dev/bus/usb/004/003)
Jan 1 12:27:51 sat pcscd: readerfactory.c:275:RFAddReader() OmniKey
CardMan 3121 init failed.
Jan 1 12:27:51 sat pcscd: hotplug_libudev.c:377:HPAddDevice() Failed
adding USB device: OmniKey CardMan 3121
Jan 1 12:27:51 sat pcscd: ccid_usb.c:499:OpenUSBByName() Can't claim
interface 4/2: -6
Jan 1 12:27:51 sat pcscd: ifdhandler.c:102:IFDHCreateChannelByName() failed
Jan 1 12:27:51 sat pcscd: readerfactory.c:965:RFInitializeReader() Open
Port 0x200001 Failed (usb:076b/3021:libudev:0:/dev/bus/usb/004/003)
Jan 1 12:27:51 sat pcscd: readerfactory.c:275:RFAddReader() OmniKey
CardMan 3121 init failed.
Jan 1 12:27:51 sat pcscd: hotplug_libudev.c:377:HPAddDevice() Failed
adding USB device: OmniKey CardMan 3121
pcscd runs as root, so we should have no issue with permissions
root 1998 0.0 0.0 164784 1392 ? S<l 12:27 0:00 pcscd
--auto-exit
root 1999 0.0 0.0 459808 1392 ? S<l 12:27 0:00 pcscd
--auto-exit
And pcsc_scan shows me only 1 reader:
root@sat:/var/log# pcsc_scan
PC/SC device scanner
V 1.4.18 (c) 2001-2011, Ludovic Rousseau <[email protected]>
Compiled with PC/SC lite version: 1.7.4
Using reader plug'n play mechanism
Scanning present readers...
0: OmniKey CardMan 3121 00 00
Tue Jan 1 12:58:09 2013
Reader 0: OmniKey CardMan 3121 00 00
Card state: Card inserted, Exclusive Mode,
ATR: 3B F7 11 00 01 40 96 70 70 0A 0E 6C B6 D6
ATR: 3B F7 11 00 01 40 96 70 70 0A 0E 6C B6 D6
+ TS = 3B --> Direct Convention
+ T0 = F7, Y(1): 1111, K: 7 (historical bytes)
TA(1) = 11 --> Fi=372, Di=1, 372 cycles/ETU
10752 bits/s at 4 MHz, fMax for Fi = 5 MHz => 13440 bits/s
TB(1) = 00 --> VPP is not electrically connected
TC(1) = 01 --> Extra guard time: 1
TD(1) = 40 --> Y(i+1) = 0100, Protocol T = 0
-----
TC(2) = 96 --> Work waiting time: 960 x 150 x (Fi/F)
+ Historical bytes: 70 70 0A 0E 6C B6 D6
Category indicator byte: 70 (proprietary format)
Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
3B F7 11 00 01 40 96 70 70 0A 0E 6C B6 D6
TopUp TV NagraVision viewing card
with this message in syslog:
Jan 1 11:53:22 sat kernel: [60084.224182] usb 4-3: new full-speed USB
device number 6 using ohci_hcd
Jan 1 11:53:23 sat mtp-probe: checking bus 4, device 6:
"/sys/devices/pci0000:00/0000:00:12.0/usb4/4-3"
Jan 1 11:53:23 sat mtp-probe: bus: 4, device: 6 was not an MTP device
Jan 1 11:53:23 sat pcscd: ccid_usb.c:499:OpenUSBByName() Can't claim
interface 4/5: -6
an issue on device 4/5, whereas previously it complained about 4/2 and
4/3... but..... I did not unplug the units.....
Now last experiment, from a root id:
pkill -9 pcscd
pcsc_scan
-> both devices show up in the scan and run fine. Until I boot.
What should I do to get two Omnikeys running from boot?
_______________________________________________
Muscle mailing list
[email protected]
http://lists.musclecard.com/mailman/listinfo/muscle_lists.musclecard.com