SPRINGCARD SAS PRNHSP01 用户手册

下载
页码 118
PMD2271-BA
page 11 of 118
S
PRING
C
ARD
 PC/SC C
OUPLERS
 - H663 
GROUP
 - Developer's reference manual
2.2. PC/SC
PC/SC is the de-facto standard to interface Personal Computers with Smart Cards (and smartcard
readers  of  course).  SpringCard PC/SC  Couplers  comply with  this  standard.   This  makes  those
products usable on most operating systems, using a high-level and standardized API.
To get started with PC/SC, please read our  
Introduction to PC/SC development and simplified
documentation of the API
, available online at
The heart of PC/SC is the SCardTransmit function, that is the implementation in the computer of
the APDU exchange stuff.
If the smartcard you are working with does comply with ISO 7816-4, there is nothing more to add!
Refer to the ISO 7816-4 standard and/or to the documentation of the card
 to know the APDUs
you must send, and how to understand the responses. Then implement your card-aware process
through a batch of SCardTransmit calls. Whether the smartcard is contactless or contact makes
little to no difference
. 
a.
PC/SC and a contact smartcard
2
 Note that a microprocessor-based smartcard is a chip plus some application running in it. It could be a monolithic application, 
without an operating system, or an operating system (for instance JavaCard) with some applications added. You need the 
documentation of the application(s) and in some situations the documentation of the operating system, not the chip's.
3
 Actually there's more differences between contact protocols T=0 and T=1 than between contactless protocol “T=CL” and T=1. 
When developing an application for a contactless smartcard, read the ISO 7816-4 standard and the documentation of the 
smartcard as if it were running T=1.
SPRINGCARD, the SPRINGCARD logo, PRO ACTIVE and the PRO ACTIVE logo are registered trademarks of PRO ACTIVE SAS.
All other brand names, product names, or trademarks belong to their respective holders.
Information in this document is subject to change without notice. Reproduction without written permission of PRO ACTIVE is forbidden.
PC
application
H663
Contact
reader
ISO
7816-3
smartcard
(T=0 or
T=1)
(PPS)
(PPS Resp.)
Card insert event
(SCardWaitStatusChange)
Connect to the card
(SCardConnect)
C-APDU
(SCardTransmit)
C-APDU
(T=0 or T=1 blocks)
R-APDU
(T=0 or T=1 blocks)
 R-APDU
(SCardTransmit success)
Disconnect from the card
(SCardDisconnect)
(power down)
(ATR)