| Home | Trees | Indices | Help |
|
|---|
|
|
PCSCCard connection class. Handles connection with a card thru a PCSC reader.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Construct a new PCSC card connection. reader: the reader in which the smartcard to connect to is located.
|
Destructor. Clean PCSC connection resources.
|
Connect to the card. If protocol is not specified, connect with the default connection protocol. If mode is not specified, connect with SCARD_SHARE_SHARED.
|
Disconnect from the card.
|
Return card ATR
|
Transmit an apdu to the card and return response apdu.
bytes: command apdu to transmit (list of bytes)
protocol: the transmission protocol, from CardConnection.T0_protocol, CardConnection.T1_protocol,
or CardConnection.RAW_protocol
return: a tuple (response, sw1, sw2) where
sw1 is status word 1, e.g. 0x90
sw2 is status word 2, e.g. 0x1A
response are the response bytes excluding status words
|
Transmit a control command to the reader and return response. controlCode: control command bytes: command data to transmit (list of bytes) return: response are the response bytes (if any)
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat Nov 22 15:23:53 2014 | http://epydoc.sourceforge.net |