LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-18-2022, 08:46 PM   #1
jowski
Member
 
Registered: Aug 2007
Posts: 117

Rep: Reputation: 9
pcsc-lite not recognizing geneeric card reader slackware64-current


I have a generic card reader 0bda:0169 that dmesg reports as follows:
[432899.949967] usb 3-3: new high-speed USB device number 85 using xhci_hcd
[432900.142072] usb 3-3: New USB device found, idVendor=0bda, idProduct=0169, bcdDevice=61.23
[432900.142086] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[432900.142092] usb 3-3: Product: USB2.0-CRW
[432900.142096] usb 3-3: Manufacturer: Generic
[432900.142100] usb 3-3: SerialNumber: 20070818000000000
[432900.146719] usb-storage 3-3:1.1: USB Mass Storage device detected
[432900.147106] scsi host7: usb-storage 3-3:1.1
[432901.178089] scsi 7:0:0:0: Direct-Access Generic- Multi-Card 1.00 PQ: 0 ANSI: 0 CCS
[432901.191897] sd 7:0:0:0: [sdc] Attached SCSI removable disk
when I start pcscd I get:
Starting PC/SC-lite smart card daemon...
Then when I run pcsc_scan:
PC/SC device scanner
V 1.4.27 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau@free.fr>
Compiled with PC/SC lite version: 1.9.5
Using reader plug'n play mechanism
Scanning present readers...
Waiting for the first reader...
This is with the following packages loaded:
pcsc-tools-1.4.27-x86_64-1_SBo
pcsc-lite-1.9.5-x86_64-1_SBo
pcsc-perl-1.4.14-x86_64-1_SBo
I'm at a loss as to what else I need to do so that I can get pcsc_scan to recognize the reader. All the searching and reading in the world hasn't helped. I'm running out of hair to pull so I could really use help here.

Thanks,
Jim
 
Old 01-19-2022, 12:42 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,384

Rep: Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764
This is way out of my league, but a couple of thoughts.
1. Apparently you can generate a log that may be informative
Quote:
Log

Then you shall generate a complete log (do not truncate it).

If you need to enter the smart card PIN to reproduce the problem then consider changing your PIN before generating the logs as the PIN value will be included in the logs.
Kill any running pcscd process
(re)start pcscd exactly as described bellow:

sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu --color | tee log.txt

Stop pcscd (using Control-C) after the problem occured and send me the generated log.txt file
2. As this is a Realtek device, is the Realtek USB storage module available? (Just something to check based on this old thread)
 
Old 01-19-2022, 07:42 AM   #3
jowski
Member
 
Registered: Aug 2007
Posts: 117

Original Poster
Rep: Reputation: 9
Here's the log with the reader plugged in and no card in it.
root@lawncart:/home/jim/pcsc/ccid# pcscd --foreground --debug --apdu --color
00000000 [140463697744384] debuglog.c:299ebugLogSetLevel() debug level=debug
00000026 [140463697744384] debuglog.c:320ebugLogSetCategory() Debug options: APDU
00000004 [140463697744384] pcscdaemon.c:353:main() Force colored logs
00000085 [140463697744384] configfile.l:293BGetReaderListDir() Parsing conf directory: /etc/reader.conf.d
00000017 [140463697744384] configfile.l:329BGetReaderListDir() Skipping non regular file: .
00000004 [140463697744384] configfile.l:329BGetReaderListDir() Skipping non regular file: reader-openct.conf
00000006 [140463697744384] configfile.l:329BGetReaderListDir() Skipping non regular file: ..
00000004 [140463697744384] configfile.l:369BGetReaderList() Parsing conf file: /etc/reader.conf.d/reader-openct.conf.orig
00000046 [140463697744384] pcscdaemon.c:663:main() pcsc-lite 1.9.5 daemon ready.
00000102 [140463697744384] hotplug_libudev.c:744:HPRegisterForHotplugEvents() No bundle files in pcsc drivers directory: /usr/lib64/pcsc/drivers
00000007 [140463697744384] hotplug_libudev.c:746:HPRegisterForHotplugEvents() Disabling USB support for pcscd
23307947 [140463697744384] winscard_msg_srv.c:256:ProcessEventsServer() Common channel packet arrival
00000034 [140463697744384] winscard_msg_srv.c:267:ProcessEventsServer() ProcessCommonChannelRequest detects: 6
00000010 [140463697744384] pcscdaemon.c:133:SVCServiceRunLoop() A new context thread creation is requested: 6
00000102 [140463689344576] winscard_svc.c:340:ContextThread() Authorized PC/SC client
00000016 [140463689344576] winscard_svc.c:343:ContextThread() Thread is started: dwClientID=6, threadContext @0x2418410
00000013 [140463689344576] winscard_svc.c:361:ContextThread() Received command: CMD_VERSION from client 6
00000019 [140463689344576] winscard_svc.c:373:ContextThread() Client is protocol version 4:4
00000005 [140463689344576] winscard_svc.c:396:ContextThread() CMD_VERSION rv=0x0 for client 6
00000041 [140463689344576] winscard_svc.c:361:ContextThread() Received command: ESTABLISH_CONTEXT from client 6
00000011 [140463689344576] winscard.c:215:SCardEstablishContext() Establishing Context: 0x53AF27E8
00000003 [140463689344576] winscard_svc.c:461:ContextThread() ESTABLISH_CONTEXT rv=0x0 for client 6
00000059 [140463689344576] winscard_svc.c:361:ContextThread() Received command: CMD_WAIT_READER_STATE_CHANGE from client 6
00000039 [140463689344576] winscard_svc.c:840:MSGSendReaderStates() Send reader states: 6
00001056 [140463689344576] winscard_svc.c:361:ContextThread() Received command: CMD_STOP_WAITING_READER_STATE_CHANGE from client 6
00000012 [140463689344576] winscard_svc.c:442:ContextThread() CMD_STOP_WAITING_READER_STATE_CHANGE rv=0x0 for client 6
00000037 [140463689344576] winscard_svc.c:361:ContextThread() Received command: CMD_WAIT_READER_STATE_CHANGE from client 6
00000007 [140463689344576] winscard_svc.c:840:MSGSendReaderStates() Send reader states: 6
00000033 [140463689344576] winscard_svc.c:361:ContextThread() Received command: CMD_STOP_WAITING_READER_STATE_CHANGE from client 6
00000006 [140463689344576] winscard_svc.c:442:ContextThread() CMD_STOP_WAITING_READER_STATE_CHANGE rv=0x0 for client 6
00000056 [140463689344576] winscard_svc.c:361:ContextThread() Received command: CMD_GET_READERS_STATE from client 6
00000038 [140463689344576] winscard_svc.c:361:ContextThread() Received command: CMD_GET_READERS_STATE from client 6
00000031 [140463689344576] winscard_svc.c:361:ContextThread() Received command: CMD_WAIT_READER_STATE_CHANGE from client 6
00000008 [140463689344576] winscard_svc.c:840:MSGSendReaderStates() Send reader states: 6
05152614 [140463689344576] winscard_svc.c:354:ContextThread() Client die: 6
00000042 [140463689344576] winscard.c:229:SCardReleaseContext() Releasing Context: 0x53AF27E8
00000013 [140463689344576] winscard_svc.c:1061:MSGCleanupClient() Thread is stopping: dwClientID=6, threadContext @0x2418410
00000010 [140463689344576] winscard_svc.c:1069:MSGCleanupClient() Freeing SCONTEXT @0x2418410
Here's /etc/reader.conf.d/reader-openct.conf
# OpenCT configuration file for pcsc-lite
# http://www.opensc.org/openct/

#FRIENDLYNAME "OpenCT"
#DEVICENAME /dev/null
#LIBPATH /usr/lib64/openct-ifd.so
#CHANNELID 0

# End of file
(<SARC>Lot's of useful stuff there. </SARC>)

and /etc/reader.conf.d/reader-openct.conf.orig
# Set debug level
debug = 0;
#
# Enable hot plugging
hotplug = yes;

#
# Path to ifdhandler
ifdhandler {
program = /usr/sbin/ifdhandler;
#
# Safe to disable force_poll:
# >=linux-2.6.27.14
# >=linux-2.6.28.3
#
force_poll = 1;
# user = root;
# groups = {
# root,
# };
};

#
# Configuration for ifdproxy (if you use it)
ifdproxy {
# server-port = /var/run/openct/.ifdproxy,
# device-port = :6666;
};

# Configure static, non-hotplug aware readers here
#
# For a list of drivers try command 'ifdhandler -i', please
# notice that not all drivers have serial device capability.

#reader towitoko {
# driver = towitoko;
# device = serial:/dev/ttyS0;
#};

#reader gempc {
# driver = gempc;
# device = serial:/dev/ttyS0;
#};

#reader cm4000 {
# driver = cm4000;
# device = pcmcia:/dev/cmm0;
#};

#reader cm4040 {
# driver = ccid;
# device = pcmcia_block:/dev/cmx0;
#};

#reader pertosmart1030 {
# driver = pertosmart1030;
# device = serial:/dev/ttyS0;
#};

#
# Hotplug IDs
driver egate {
ids = {
usb:0973/0001,
};
};

driver ePass3000 {
ids = {
usb:096e/0401,
};
};

driver etoken {
ids = {
usb:0529/050c,
usb:0529/0514,
};
};
driver etoken64 {
ids = {
usb:0529/0600,
usb:0529/0700,
};
};
driver eutron {
ids = {
usb:073d/0005,
};
};
driver ikey2k {
ids = {
usb:04b9/1202,
};
};
driver ikey3k {
ids = {
usb:04b9/1300,
};
};
driver starkey {
ids = {
usb:096e/0005,
};
};
driver cardman {
ids = {
# usb:076b/0596, # OMNIKEY CardMan 2020
# usb:076b/1784, # OMNIKEY CardMan 6020
# usb:08d4/0009, # Fujitsu Siemens SCR USB Reader
};
};
driver ccid {
ids = {
usb:03f0/1024, # HP Keyboard with CCID reader
usb:046a/0010, # Cherry smartboard G83-6744
usb:04e6/5115,
usb:04e6/5116,
usb:04e6/5117, # SCM Micro token size reader
usb:04e6/511d, # SCM Micro SCR3311
usb:04e6/E001,
usb:04e6/E003,
usb:073d/0c00, # Eutron SimPocket (doesn't work yet)
usb:076b/1021, # OmniKey CardMan 1021
usb:076b/3021,
usb:076b/5121,
usb:076b/5321, # OmniKey CardMan 5321
usb:076b/6622, # OmniKey CardMan 6121
usb:0783/0003,
usb:08e6/3437, # Gemplus
usb:08e6/3438, # Gemplus GemPC Key SmartCard Reader
usb:08e6/4433, # Gemplus
usb:0b97/7762, # O2 Micro, Inc. Oz776 SmartCard Reader
usb:0b97/7772, # O2 Micro, Inc. Oz776 SmartCard Reader
usb:0bf8/1006, # fujitsu siemens 3.5" drive size reader
usb:0dc3/1004, # Athena Smartcard Solutions, Inc. ASEKey
usb:0a89/0030, # Aktiv Rutoken ECP
usb:0bda/0169, # Senome Smartcard Reader
};
};
driver pertosmart1030 {
ids = {
usb:072f/0001,
usb:072f/8009,
};
};
driver pertosmart1038 {
ids = {
usb:072f/9000,
usb:072f/9006, # ACS CryptoMate Token
usb:072f/9007, # ACS ACR 100 SIMFlash
usb:072f/90d0,
};
};
#driver wbeiuu { # driver not working yet
# ids = {
# usb:104f/0004,
# };
#};

# Tested with USBID 0c4b:0100. These are red readers: one with LCD,
# another one without.
driver cyberjack {
ids = {
usb:0c4b/0100,
};
};
driver rutoken {
ids = {
usb:0a89/0020, # Aktiv Rutoken S
usb:0a89/0012, # Aktiv uaToken S
};
};
I'm not sure why the openct stuff is there because I removed the package and would expect it wouldn't be of interest but I don't know that much about what's going on.

The reader is the last entry in the ccid block (Senome Smartcard Reader).

Jim
 
Old 01-19-2022, 10:25 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634

Rep: Reputation: Disabled
Umm, with openSUSE one needs pcsc-ccid, pcsc-lite and libpcsclite1. Did I overlook that in your post?

Last edited by JZL240I-U; 01-20-2022 at 05:35 AM.
 
1 members found this post helpful.
Old 01-19-2022, 03:13 PM   #5
jowski
Member
 
Registered: Aug 2007
Posts: 117

Original Poster
Rep: Reputation: 9
I'll have to check later to see if I have libpclite1. I'll also look into the slackbuild for it.

Jim
 
Old 01-19-2022, 05:15 PM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,384

Rep: Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764
I think JZL240I-U has nailed it by pointing to ccid.
Quote:
00000102 [140463697744384] hotplug_libudev.c:744:HPRegisterForHotplugEvents() No bundle files in pcsc drivers directory: /usr/lib64/pcsc/drivers
00000007 [140463697744384] hotplug_libudev.c:746:HPRegisterForHotplugEvents() Disabling USB support for pcscd
This indicates that you do not have libccid. There is an updated SlackBuild for -current.
 
2 members found this post helpful.
Old 01-19-2022, 06:17 PM   #7
jowski
Member
 
Registered: Aug 2007
Posts: 117

Original Poster
Rep: Reputation: 9
WE HAVE A WINNER FOLKS!!!

Used the updated Slackbuild to build the ccid package, installed it, and the reader was found with pcsc_scan. It doesn't get much better than that.

Marking this solved.

Jim
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] gpg2 / pcsc-lite failing on -current drgibbon Slackware 6 06-24-2021 10:35 PM
SD card not mounted on Ubuntu Lite 3.6 - card reader not faulty rosyfairbottom Linux - Newbie 3 10-30-2017 11:58 AM
can't get SCM331 smart card reader working with pcsc CartersAdvocate Slackware 0 02-22-2009 06:15 PM
Recognizing USB card reader when card is inserted hqo201 Fedora 0 08-02-2004 05:08 PM
Is their anybody who have installed PCSC lite on redhat linux kakultech Linux - Software 0 08-01-2003 02:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration