Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pcsc_scan(1) [debian man page]

PCSC_SCAN(1)						      General Commands Manual						      PCSC_SCAN(1)

NAME
pcsc_scan - regularly scans every PC/SC readers connected to the host SYNOPSIS
pcsc_scan [options] DESCRIPTION
This manual page documents briefly the pcsc_scan command. pcsc_scan is a program that regularly scans every PC/SC readers connected to the host When pcsc_scan is started it asks pcscd the list of available smart card readers. The list is printed. A sequence number is printed before each reader. Example: PC/SC device scanner V 1.1.0 (c) 2001-2002, Ludovic Rousseau PC/SC lite version: 1.1.1 0: GemPC410 0 0 1: GemPC430 0 0 When a card is inserted in any reader some information is printed: date and time: Thu Jun 13 18:56:14 2002 reader name: Reader 0 (GemPC410 0 0) card state and occured event: Card state: State has changed, Card inserted, ATR in case of card insertion: ATR: 3B 82 00 86 1E print an ATR analysis if the ATR_analysis command is available: ATR: 3B 82 00 86 1E + TS = 3B --> Direct Convention + T0 = 82, Y(1): 1000, K: 2 (historical bytes) TD(1) = 00 --> Y(i+1) = 0000, Protocol T = 0 ----- + Historical bytes: 86 1E OPTIONS
-h print help -V print version number -n do not print ATR analysis SEE ALSO
pcscd(1), ATR_analysis(1) AUTHOR
Ludovic Rousseau <ludovic.rousseau@free.fr> june 13, 2002 PCSC_SCAN(1)

Check Out this Related Man Page

READER.CONF(5)							    PC/SC Lite							    READER.CONF(5)

NAME
reader.conf - configuration file for pcscd readers' drivers DESCRIPTION
The /etc/reader.conf file contains configuration information for serial and (some) PCMCIA smart card readers. USB readers SHALL NOT be configured using this file. pcscd uses another mechanism to automatically load USB drivers. SYNTAX
The /etc/reader.conf is a regular text file. Each reader must be defined by four fields: FRIENDLYNAME TEXT_STRING DEVICENAME FILENAME LIBPATH FILENAME CHANNELID NUMBER The "FRIENDLYNAME" field is an arbitrary text used to identify the reader. This text is displayed by commands like pcsc_scan(1) that prints the names of all the connected and detected readers. The "DEVICENAME" field was not used for old drivers (using the IFD handler version 2.0 or earlier). It is now (IFD handler version 3.0) used to identify the physical port on which the reader is connected. This is the device name of this port. It is dependent of the OS ker- nel. The first serial port device is called /dev/ttyS0 under Linux and /dev/cuaa0 under FreeBSD. The "LIBPATH" field is the filename of the driver code. The driver is a dynamically loaded piece of code (generally a drivername.so*file). The "CHANNELID" is no more used for recent drivers (IFD handler 3.0) and has been superseded by "DEVICENAME". If you have an old driver this field is used to indicate the port to use. You should read your driver documentation to know what information is needed here. It should be the serial port number for a serial reader. EXAMPLE
# Gemplus GemPCTwin reader with serial communication # connected to the first serial port FRIENDLYNAME "GemPCTwin serial" DEVICENAME /dev/ttyS0 LIBPATH /usr/lib64/readers/serial/libccidtwin.so.0.4.1 CHANNELID 1 DEBUGGING
In order to set up your /etc/reader.conf file correctly you may want to have debug messages from pcscd. I recommend you to start pscsd in the foreground and debug mode using: # pcscd --foreground --debug If everything seems OK you can use the pcsc_scan command to print the list of correctly detected readers and try to get the ATR of your smart cards. AUTHOR
Ludovic Rousseau <ludovic.rousseau@free.fr> SEE ALSO
pcscd(8), pcsc_scan(1) Muscle August 2005 READER.CONF(5)
Man Page