Apdu Exchange - Gemplus GPR400 Reference Manual

Smartcard reader / writer
Table of Contents

Advertisement

APDU Exchange

This command sends a request to a Smartcard (T=0 or T=1 or use o f
downloaded drivers).
In this mode, the GPR400 relays the Transport Protocol Data Unit (TPDU)
command to the Smartcard, and then returns the TPDU response from the
Smartcard to the application.
The T=1 protocol management implemented by the GPR400 offers a
transparent mode mechanism. The other T=1 mechanisms, such as
chaining, retransmission, and resynchronization must be handled by the
external application.
The Exchange Data buffer for ISO Smartcards has a length of 256 bytes.
Command Format
T = 30h
L = Length of V field
V = Vex
where
ISO In command :
ISO Out command :
Vex = Nad, Pcb, Le, Vinf, E
Answer Format
Type
Length
Variable
where :
© GEMPLUS
SENDING COMMANDS TO THE READER
Vex = DIR, Vinf
DIR=00
Vinf = CLA, INS, P1, P2, Lin, Data IN
DIR=01
Vinf = CLA, INS, P1, P2, Lout
for T=1 protocol ( TPDU format )
Vinf = CLA, INS, P1, P2, Lin, Data, Lout
Ta = Tc + 02h
L = Length of V field
V = Reader Status Code (1 byte) , Vans
Vans = Data Out for T=0 protocol.
Vans = Nad, Pcb, Le, Data, E (Data received from
the Smartcard in a TPDU format T=1)
for T=0 protocol
12

Advertisement

Table of Contents
loading

Table of Contents