SPRINGCARD SAS PRNHSP01 用户手册

下载
页码 118
PMD2271-BA
page 19 of 118
S
PRING
C
ARD
 PC/SC C
OUPLERS
 - H663 
GROUP
 - Developer's reference manual
3. E
MBEDDED
 APDU 
INTERPRETER
3.1. B
ASIS
In   PC/SC   architecture,   the  SCardTransmit  function   implements   the   dialogue   between   an
application and a smartcard, the coupler being only a “passive” gateway. The coupler transmits
frames in both directions, without any specific processing. The dialogue follows the ISO 7816-4
APDU rules:
Application to smartcard C-APDU is CLA, INS, P1, P2, Data In (optional)
Smart-card to application R-APDU is Data Out (optional), SW1, SW2
In order to work with non ISO 7816-4 cards as if they were smartcards, the embedded APDU
interpreter obeys to the same rules, offering its own list of instructions under the reserved class
CLA=
h
FF. It is therefore available through regular SCardTransmit calls.
3.1.1.
CLA byte of the embedded APDU interpreter
Default class is 
h
FF. This means that every APDU starting with CLA=
 h
FF will be interpreted by the
H663, and not forwarded by the card.
a.
Changing the CLA byte of the embedded APDU interpreter
The CLA byte of the embedded APDU interpreter is stored in register 
h
B2 of H663’s non volatile
memory (see § 7.4.2).
Note: in the following paragraphs, documentation of the APDUs is written with CLA=
 h
FF. Change
this to match your own CLA if necessary.
b.
Disabling the embedded APDU interpreter
Define CLA byte = 
h
00 (register 
h
B2=
 h
00, see § 7.4.2) to disable the embedded APDU interpreter.
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.