Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Open Port 0x200000 Failed" while initializing device #105

Closed
Occhioverde opened this issue Jul 5, 2021 · 7 comments
Closed

"Open Port 0x200000 Failed" while initializing device #105

Occhioverde opened this issue Jul 5, 2021 · 7 comments
Assignees

Comments

@Occhioverde
Copy link

Good morning.
I'm trying to connect the Reiner SCT cyberJack smartcard reader to my Linux system but, after correctly installing all the necessary dependencies (PCSC and ccid) the device is not recognized and the daemon log shows the Open Port 0x200000 Failed message I also reported in the issue title.
I insert below the output of the commands requested on the project website.
Thank in advance for the help.

$ uname -a
Linux Ricky-1st-Laptop 5.12.9-1-MANJARO #1 SMP PREEMPT Thu Jun 3 14:56:42 UTC 2021 x86_64 GNU/Linux

$ /usr/sbin/pcscd --version/usr/sbin/pcscd --version
pcsc-lite version 1.9.1.
Copyright (C) 1999-2002 by David Corcoran <[email protected]>.
Copyright (C) 2001-2018 by Ludovic Rousseau <[email protected]>.
Copyright (C) 2003-2004 by Damien Sauveron <[email protected]>.
Report bugs to <[email protected]>.
Enabled features: Linux x86_64-pc-linux-gnu libsystemd serial usb libudev usbdropdir=/usr/lib/pcsc/drivers ipcdir=/run/pcscd filter configdir=/etc/reader.conf.d

$ pacman -Si pcsclite ccid
Repository                : community
Nome                      : pcsclite
Versione                  : 1.9.1-1
Descrizione               : PC/SC Architecture smartcard middleware library
Architettura              : x86_64
URL                       : https://pcsclite.apdu.fr/
Licenze                   : BSD
Gruppi                    : Nessuno
Fornisce                  : libpcsclite.so=1-64  libpcscspy.so=0-64
Dipenda da                : python  systemd  libsystemd.so=0-64  libudev.so=1-64
Dipendenze opzionali      : Nessuno
Conflitti con             : Nessuno
Sostituisce               : Nessuno
Dimensione del download   : 99,81 KiB
Spazio richiesto          : 306,73 KiB
Pacchettizzatore          : Christian Hesse <[email protected]>
Data di creazione         : mar 9 mar 2021, 08:15:18
Convalidato da            : Somma MD5  Somma SHA-256  Firma

Repository                : community
Nome                      : ccid
Versione                  : 1.4.34-1
Descrizione               : A generic USB Chip/Smart Card Interface Devices driver
Architettura              : x86_64
URL                       : https://ccid.apdu.fr/
Licenze                   : LGPL  GPL
Gruppi                    : Nessuno
Fornisce                  : Nessuno
Dipenda da                : pcsclite  libusb  flex
Dipendenze opzionali      : Nessuno
Conflitti con             : Nessuno
Sostituisce               : Nessuno
Dimensione del download   : 76,11 KiB
Spazio richiesto          : 255,89 KiB
Pacchettizzatore          : Christian Hesse <[email protected]>
Data di creazione         : dom 31 gen 2021, 21:29:32
Convalidato da            : Somma MD5  Somma SHA-256  Firma

$ sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu --color | tee log.txt
00000000 debuglog.c:299:DebugLogSetLevel() debug level=debug
00000070 debuglog.c:320:DebugLogSetCategory() Debug options: APDU
00000012 [139923910978944] pcscdaemon.c:353:main() Force colored logs
00000248 [139923910978944] configfile.l:293:DBGetReaderListDir() Parsing conf directory: /etc/reader.conf.d
00000036 [139923910978944] configfile.l:369:DBGetReaderList() Parsing conf file: /etc/reader.conf.d/libccidtwin
00000060 [139923910978944] configfile.l:329:DBGetReaderListDir() Skipping non regular file: .
00000006 [139923910978944] configfile.l:329:DBGetReaderListDir() Skipping non regular file: ..
00000011 [139923910978944] pcscdaemon.c:663:main() pcsc-lite 1.9.1 daemon ready.
00017167 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
00000372 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
00000391 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x258A, PID: 0x1007, path: /dev/bus/usb/003/002
00000379 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x258A, PID: 0x1007, path: /dev/bus/usb/003/002
00000735 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/004/001
00000746 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000381 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00000426 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x0438, PID: 0x7900, path: /dev/bus/usb/001/002
00000411 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x1EA7, PID: 0x0907, path: /dev/bus/usb/001/003
00000424 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x1EA7, PID: 0x0907, path: /dev/bus/usb/001/003
00000423 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x1EA7, PID: 0x0907, path: /dev/bus/usb/001/003
00000393 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x0438, PID: 0x7900, path: /dev/bus/usb/001/002
00000421 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x0C4B, PID: 0x9102, path: /dev/bus/usb/001/004
00000020 [139923910978944] hotplug_libudev.c:440:HPAddDevice() Adding USB device: REINER SCT cyberJack RFID basis
00000097 [139923910978944] readerfactory.c:1079:RFInitializeReader() Attempting startup of REINER SCT cyberJack RFID basis 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
00000651 [139923910978944] readerfactory.c:954:RFBindFunctions() Loading IFD Handler 3.0
00000058 [139923910978944] ifdhandler.c:2025:init_driver() Driver version: 1.4.34
00001847 [139923910978944] ifdhandler.c:2042:init_driver() LogLevel: 0x0003
00000024 [139923910978944] ifdhandler.c:2053:init_driver() DriverOptions: 0x0000
00000429 [139923910978944] ifdhandler.c:2066:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x000F
00000015 [139923910978944] ifdhandler.c:110:CreateChannelByNameOrChannel() Lun: 0, device: usb:0c4b/9102:libudev:0:/dev/bus/usb/001/004
00000019 [139923910978944] ccid_usb.c:237:OpenUSBByName() Reader index: 0, Device: usb:0c4b/9102:libudev:0:/dev/bus/usb/001/004
00000033 [139923910978944] ccid_usb.c:269:OpenUSBByName() interface_number: 0
00000007 [139923910978944] ccid_usb.c:270:OpenUSBByName() usb bus/device: 1/4
00000007 [139923910978944] ccid_usb.c:302:OpenUSBByName() Using: /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
00001451 [139923910978944] ccid_usb.c:320:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau ([email protected])
00000017 [139923910978944] ccid_usb.c:321:OpenUSBByName() ifdProductString: Generic CCID driver
00000010 [139923910978944] ccid_usb.c:322: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.
00016761 [139923910978944] ccid_usb.c:406:OpenUSBByName() Try device: 1/4
00000040 [139923910978944] ccid_usb.c:416:OpenUSBByName() vid/pid : 0C4B/9102
00000007 [139923910978944] ccid_usb.c:482:OpenUSBByName() Checking device: 1/4
00000013 [139923910978944] ccid_usb.c:553:OpenUSBByName() Trying to open USB bus/device: 1/4
00064098 [139923910978944] ccid_usb.c:659:OpenUSBByName() Found Vendor/Product: 0C4B/9102 (REINER SCT cyberJack RFID basis)
00000032 [139923910978944] ccid_usb.c:661:OpenUSBByName() Using USB bus/device: 1/4
00000008 [139923910978944] ccid_usb.c:1275:ControlUSB() request: 0x03
00000887 [139923910978944] receive: 80 0A 00 00
00000015 [139923910978944] ccid_usb.c:1255:get_data_rates() declared: 2688 bps
00001042 [139923910978944] ccid_usb.c:1328:InterruptRead() before (0), timeout: 100 ms
00102634 [139923910978944] ccid_usb.c:1374:InterruptRead() after (0) (2)
00000061 [139923910978944] -> 000000 65 00 00 00 00 00 00 00 00 00
00000671 [139923910978944] <- 000000 81 00 00 00 00 00 00 42 00 00
00000025 [139923910978944] commands.c:1250:CmdGetSlotStatus Command not supported or not allowed
00000016 [139923910978944] -> 000000 65 00 00 00 00 00 01 00 00 00
00000774 [139923910978944] <- 000000 81 00 00 00 00 00 01 42 00 00
00000028 [139923910978944] commands.c:1250:CmdGetSlotStatus Command not supported or not allowed
00000015 [139923910978944] -> 000000 65 00 00 00 00 00 02 00 00 00
00000703 [139923910978944] <- 000000 81 00 00 00 00 00 02 42 00 00
00000024 [139923910978944] commands.c:1250:CmdGetSlotStatus Command not supported or not allowed
00000010 [139923910978944] ifdhandler.c:202:CreateChannelByNameOrChannel() failed
00000011 [139923910978944] ccid_usb.c:940:CloseUSB() Closing USB device: 1/4
00000009 [139923910978944] ccid_usb.c:952:CloseUSB() Last slot closed. Release resources
00000079 [139923910978944] ccid_usb.c:189:close_libusb_if_needed() libusb_exit
00000264 [139923910978944] readerfactory.c:1120:RFInitializeReader() Open Port 0x200000 Failed (usb:0c4b/9102:libudev:0:/dev/bus/usb/001/004)
00000026 [139923910978944] readerfactory.c:380:RFAddReader() REINER SCT cyberJack RFID basis init failed.
00000015 [139923910978944] readerfactory.c:614:RFRemoveReader() UnrefReader() count was: 1
00000010 [139923910978944] readerfactory.c:1133:RFUnInitializeReader() Attempting shutdown of REINER SCT cyberJack RFID basis 00 00.
00000010 [139923910978944] readerfactory.c:991:RFUnloadReader() Unloading reader driver.
00000182 [139923910978944] hotplug_libudev.c:526:HPAddDevice() Failed adding USB device: REINER SCT cyberJack RFID basis
00001057 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x0438, PID: 0x7900, path: /dev/bus/usb/001/002
00000718 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x0BDA, PID: 0x0129, path: /dev/bus/usb/001/005
00000617 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x0438, PID: 0x7900, path: /dev/bus/usb/001/002
00001054 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001
00000605 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001
00000659 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x0438, PID: 0x7900, path: /dev/bus/usb/002/002
00000675 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x0BDA, PID: 0x57B3, path: /dev/bus/usb/002/003
00000646 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x0BDA, PID: 0x57B3, path: /dev/bus/usb/002/003
00000638 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x0438, PID: 0x7900, path: /dev/bus/usb/002/002
00000767 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x04CA, PID: 0x3015, path: /dev/bus/usb/002/004
00000803 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x04CA, PID: 0x3015, path: /dev/bus/usb/002/004
00000709 [139923910978944] hotplug_libudev.c:299:get_driver() Looking for a driver for VID: 0x0438, PID: 0x7900, path: /dev/bus/usb/002/002
@LudovicRousseau
Copy link
Owner

It looks like this device is NOT CCID compliant.
Maybe it is like "REINER SCT cyberJack RFID standard" and should be in the "disabled" list.

I suggest you to use the Reiner SCT driver instead of my CCID driver.

@Occhioverde
Copy link
Author

@LudovicRousseau
Copy link
Owner

Interesting.
I suggest you to contact them for support.

@Occhioverde
Copy link
Author

Thanks, I tried to open a ticket in their website.
I'll post here if I manage to find out something useful.

@LudovicRousseau
Copy link
Owner

@Occhioverde can you post here the ticket number or the URL on Reiner SCT website?

I contacted Reiner SCT on my side and the reader should work fine.

@Occhioverde
Copy link
Author

The ticket number is #2021070510001704 but, since I was told by them that "in this case, the cyberJack RFID basis ID card reader is not suitable for you.", I returned it to Amazon and ordered another one that is known to work with your driver.

@LudovicRousseau
Copy link
Owner

Ok closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants