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

Can't find my reader after upgrade #19

Closed
kolayne opened this issue Nov 19, 2018 · 3 comments
Closed

Can't find my reader after upgrade #19

kolayne opened this issue Nov 19, 2018 · 3 comments

Comments

@kolayne
Copy link

kolayne commented Nov 19, 2018

I've upgraded something in my system and after that pcsc_scan cannot find my reader while lsusb sees it. I've tried:

  1. Installing ccid (both source version and via apt-get)
  2. gdb pcscd (my output is exactly same with this gdb backtrace)
  3. modprobe -r pn533 nfc (with pcscd restart)
  4. rmmod pn533_usb pn533 (with pcscd restart)
  5. Installing other versions of pcsc-tools
    None of this helped. I'm using Linux Mint 19, ACR122U reader.

Thank you for any help

@LudovicRousseau
Copy link
Owner

Please provide the information listed at https://pcsclite.alioth.debian.org/ccid.html#support

@kolayne
Copy link
Author

kolayne commented Nov 22, 2018

Versions

CCID: 1.4.29-1
pcsc-lite version 1.8.23

Platform

Linux Mint 19
Advanced Card Systems, Ltd ACR122U

log.txt

00000000 debuglog.c:289:DebugLogSetLevel() debug level=debug
00000065 debuglog.c:310:DebugLogSetCategory() Debug options: APDU
�[36m00000015�[0m �[34mpcscdaemon.c:352:main() Force colored logs�[0m
�[36m00000139�[0m �[01;31mutils.c:82:GetDaemonPid() Can't open /var/run/pcscd/pcscd.pid: No such file or directory�[0m
�[36m00000518�[0m configfile.l:285:DBGetReaderListDir() Parsing conf directory: /etc/reader.conf.d
�[36m00027215�[0m configfile.l:361:DBGetReaderList() Parsing conf file: /etc/reader.conf.d/libccidtwin
�[36m00014227�[0m configfile.l:322:DBGetReaderListDir() Skipping non regular file: .
�[36m00000034�[0m configfile.l:322:DBGetReaderListDir() Skipping non regular file: ..
�[36m00000028�[0m �[34mpcscdaemon.c:662:main() pcsc-lite 1.8.23 daemon ready.�[0m
�[36m00031130�[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
�[36m00000718�[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
�[36m00000575�[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x072F, PID: 0x2200, path: /dev/bus/usb/001/028
�[36m00000107�[0m �[34mhotplug_libudev.c:436:HPAddDevice() Adding USB device: ACS ACR122U PICC Interface�[0m
�[36m00000177�[0m �[34mreaderfactory.c:1075:RFInitializeReader() Attempting startup of ACS ACR122U PICC Interface 00 00 using /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so�[0m
�[36m00038339�[0m �[34mreaderfactory.c:950:RFBindFunctions() Loading IFD Handler 3.0�[0m
�[36m00000174�[0m �[34mifdhandler.c:1961:init_driver() Driver version: 1.4.29�[0m
�[36m00001708�[0m �[34mifdhandler.c:1978:init_driver() LogLevel: 0x0003�[0m
�[36m00000025�[0m �[34mifdhandler.c:1989:init_driver() DriverOptions: 0x0000�[0m
�[36m00000498�[0m �[34mifdhandler.c:2002:init_driver() LogLevel from LIBCCID_ifdLogLevel: 0x000F�[0m
�[36m00000019�[0m �[34mifdhandler.c:110:CreateChannelByNameOrChannel() Lun: 0, device: usb:072f/2200:libudev:0:/dev/bus/usb/001/028�[0m
�[36m00000018�[0m ccid_usb.c:237:OpenUSBByName() Reader index: 0, Device: usb:072f/2200:libudev:0:/dev/bus/usb/001/028
�[36m00000021�[0m ccid_usb.c:269:OpenUSBByName() interface_number: 0
�[36m00000007�[0m ccid_usb.c:270:OpenUSBByName() usb bus/device: 1/28
�[36m00000008�[0m �[34mccid_usb.c:302:OpenUSBByName() Using: /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist�[0m
�[36m00001628�[0m �[34mccid_usb.c:320:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau ([email protected])�[0m
�[36m00000024�[0m �[34mccid_usb.c:321:OpenUSBByName() ifdProductString: Generic CCID driver�[0m
�[36m00000007�[0m �[34mccid_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.�[0m
�[36m00006827�[0m ccid_usb.c:406:OpenUSBByName() Try device: 1/28
�[36m00000028�[0m ccid_usb.c:416:OpenUSBByName() vid/pid : 072F/2200
�[36m00000008�[0m ccid_usb.c:483:OpenUSBByName() Checking device: 1/28
�[36m00000006�[0m ccid_usb.c:554:OpenUSBByName() Trying to open USB bus/device: 1/28
�[36m00000168�[0m �[01;31mccid_usb.c:649:OpenUSBByName() Can't claim interface 1/28: LIBUSB_ERROR_BUSY�[0m
�[36m00000098�[0m �[34mccid_usb.c:189:close_libusb_if_needed() libusb_exit�[0m
�[36m00000202�[0m �[01;31mifdhandler.c:150:CreateChannelByNameOrChannel() failed�[0m
�[36m00000016�[0m �[01;31mreaderfactory.c:1106:RFInitializeReader() Open Port 0x200000 Failed (usb:072f/2200:libudev:0:/dev/bus/usb/001/028)�[0m
�[36m00000006�[0m �[35mreaderfactory.c:376:RFAddReader() ACS ACR122U PICC Interface init failed.�[0m
�[36m00000008�[0m readerfactory.c:610:RFRemoveReader() UnrefReader() count was: 1
�[36m00000007�[0m �[34mreaderfactory.c:1126:RFUnInitializeReader() Attempting shutdown of ACS ACR122U PICC Interface 00 00.�[0m
�[36m00000006�[0m �[34mreaderfactory.c:987:RFUnloadReader() Unloading reader driver.�[0m
�[36m00000110�[0m �[35mhotplug_libudev.c:523:HPAddDevice() Failed adding USB device: ACS ACR122U PICC Interface�[0m
�[36m00000342�[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
�[36m00000316�[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x04CA, PID: 0x3015, path: /dev/bus/usb/001/006
�[36m00000327�[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x04CA, PID: 0x3015, path: /dev/bus/usb/001/006
�[36m00000277�[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
�[36m00000342�[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x0408, PID: 0xA030, path: /dev/bus/usb/001/007
�[36m00000430�[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x0408, PID: 0xA030, path: /dev/bus/usb/001/007
�[36m00000468�[0m hotplug_libudev.c:297:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0003, path: /dev/bus/usb/002/001

gdb

GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<https://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from pcscd...Reading symbols from /usr/lib/debug/.build-id/24/5e47e40de4e0b182b0999933c8831eeaa5e365.debug...done.
done.
(gdb) set args --foreground --debug --apdu
(gdb) run
Starting program: /usr/sbin/pcscd --foreground --debug --apdu
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
00000000 debuglog.c:289:DebugLogSetLevel() debug level=debug
00000014 debuglog.c:310:DebugLogSetCategory() Debug options: APDU
00000322 configfile.l:285:DBGetReaderListDir() Parsing conf directory: /etc/reader.conf.d
[New Thread 0x7ffff65a4700 (LWP 18623)]
00000017 configfile.l:361:DBGetReaderList() Parsing conf file: /etc/reader.conf.d/libccidtwin
00000062 configfile.l:322:DBGetReaderListDir() Skipping non regular file: .
00000003 configfile.l:322:DBGetReaderListDir() Skipping non regular file: ..
00000004 pcscdaemon.c:662:main() pcsc-lite 1.8.23 daemon ready.
00000039 pcscdaemon.c:697:main() cannot create /var/run/pcscd/pcscd.pid: Permission denied
00000018 winscard_msg_srv.c:148:InitializeSocket() Unable to bind common socket: Permission denied
00000016 pcscdaemon.c:722:main() Error initializing pcscd.
00000001 pcscdaemon.c:785:at_exit() cleaning /var/run/pcscd
00000004 pcscdaemon.c:816:clean_temp_files() Cannot remove /var/run/pcscd/pcscd.comm: No such file or directory
00000003 pcscdaemon.c:822:clean_temp_files() Cannot remove /var/run/pcscd/pcscd.pid: No such file or directory
[Thread 0x7ffff65a4700 (LWP 18623) exited]
[Inferior 1 (process 18619) exited with code 01]
(gdb) backtrace
(gdb) quit

@LudovicRousseau
Copy link
Owner

See https://ludovicrousseau.blogspot.com/2013/11/linux-nfc-driver-conflicts-with-ccid.html

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

No branches or pull requests

2 participants