Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

atr_analysis(1p) [debian man page]

ATR_ANALYSIS(1p)						   User Commands						  ATR_ANALYSIS(1p)

NAME
ATR_analysis - analyse a smart card ATR SYNOPSIS
ATR_analysis [ATRstring] DESCRIPTION
ATR_analysis is used to parse the ATR (Answer To Reset) sent by a smart card. The command also tries to find the card model using an ATR database stored in a text file smartcard_list.txt. The smartcard_list.txt file is searched in ./, /usr/local/pcsc/ and /usr/share/pcsc/ directories. Exemple: $ ATR_analysis '3B A7 00 40 18 80 65 A2 08 01 01 52' ATR: 3B A7 00 40 18 80 65 A2 08 01 01 52 + TS = 3B --> Direct Convention + T0 = A7, Y(1): 1010, K: 7 (historical bytes) TB(1) = 00 --> Programming Param P: 0, I: 0 TD(1) = 40 --> Y(i+1) = 0100, Protocol T = 0 ----- TC(2) = 18 --> Work waiting time: 960 x 24 x (Fi/F) + Historical bytes: 80 65 A2 08 01 01 52 Possibly identified card: 3B A7 00 40 18 80 65 A2 08 01 01 52 Gemplus GPK8000 BUGS
Maybe many bugs since I am not a ISO 7816 expert. FILES
smartcard_list.txt SEE ALSO
pcscd(8), pcsc_scan(1) AUTHOR
Ludovic Rousseau <ludovic.rousseau@free.fr> Version: 1.3 October 2005 ATR_ANALYSIS(1p)

Check Out this Related Man Page

IFDHPowerICC(3SMARTCARD)				    Smartcard Library Functions 				  IFDHPowerICC(3SMARTCARD)

NAME
IFDHPowerICC - power up or power down the smart card SYNOPSIS
#include <smartcard/ifdhandler.h> RESPONSECODE IFDHPowerICC(DWORD Lun, DWORD Action, PUCHAR Atr, PDWORD AtrLength); PARAMETERS
The IFDHPowerICC() takes the following parameters: Input Lun Logical Unit Number Action Action to be taken AtrLength Maximum length of the ATR Output Atr Answer to Reset (ATR) value of the inserted card AtrLength Actual length of the ATR DESCRIPTION
The IFDHPowerICC() function controls the power and reset signals of the ICC (smart card) at the reader or slot specified by Lun. The Action parameter can take one of the following values: IFD_POWER_UP Power and reset the card. Return the ATR and its length. IFD_POWER_DOWN Power down the card. The Atr and AtrLength parameters are set to 0. IFD_RESET Perform a quick reset on the card. Return the ATR and its length. The IFD handler caches the ATR during a power up or reset and returns the ATR and its length in a call to IFDHGetCapabilities(3SMARTCARD). Memory cards without an ATR return IFD_SUCCESS on power up or reset but Atr and AtrLength are set to 0. RETURN VALUES
The following values are returned: IFD_SUCCESS Successful completion. IFD_ERROR_POWER_ACTION An error occurred while powering up or resetting the card. IFD_NOT_SUPPORTED The action specified by Action is not supported. IFD_COMMUNICATION_ERROR An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
IFDHCreateChannelByName(3SMARTCARD), IFDHGetCapabilities(3SMARTCARD), attributes(5) NOTES
This manual page is derived from the MUSCLE PC/SC IFD Driver Developer Kit documentation. License terms and attribution and copyright information for this interface are available at the default location /var/sadm/pkg/SUNWocfh/install/copyright. If the Solaris Operating Environment has been installed anywhere other than the default location, modify the path to access the file at the installed location. SunOS 5.10 4 Dec 2002 IFDHPowerICC(3SMARTCARD)
Man Page