поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

AN2646 датащи(PDF) 18 Page - STMicroelectronics

номер детали AN2646
подробное описание детали  Smartcard interface with the STM8S microcontroller
PDF  43 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2646 датащи(HTML) 18 Page - STMicroelectronics

Back Button AN2646 Datasheet HTML 14Page - STMicroelectronics AN2646 Datasheet HTML 15Page - STMicroelectronics AN2646 Datasheet HTML 16Page - STMicroelectronics AN2646 Datasheet HTML 17Page - STMicroelectronics AN2646 Datasheet HTML 18Page - STMicroelectronics AN2646 Datasheet HTML 19Page - STMicroelectronics AN2646 Datasheet HTML 20Page - STMicroelectronics AN2646 Datasheet HTML 21Page - STMicroelectronics AN2646 Datasheet HTML 22Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 18 / 43 page
background image
ISO 7816-4 – smartcard commands
AN2646 - Application note
18/43
5
ISO 7816-4 – smartcard commands
The previous chapter discussed the answer-to-reset (ATR) mechanism, which establishes a
basic communication channel between the smartcard and the reader. This channel is a half-
duplex physical channel. This chapter investigates the use of more complex protocols on top
of this physical channel.
A link-level communication protocol resides directly on top of the physical channel, providing
error-free communication between the reader and the smartcard. Once this link-level
protocol is established, application-level protocols can be defined. ISO 7816-4 defines two
such application-level protocols:
●
File system API providing a set of functions to manipulate files (for example read, write,
select, etc.).
●
Security service API allowing the smartcard and the reader to mutually authenticate
themselves and also to encrypt data to be exchanged between the card and the reader.
ISO 7816-4 defines a protocol message structure to support the application protocol APIs.
This message structure consists of application protocol data units (APDUs) which are
exchanged between the reader application and the smartcard application by the link-level
protocol. This chapter will provide an overview of the file access and security APIs.
5.1
T0 protocol
The T0 protocol is a byte-oriented protocol where a character is transmitted across the
channel between the reader and the card. In addition, error handling is performed on each
byte by looking at the parity bit. If the actual parity bit does not correspond to the parity of
the transmitted data, then an error must have occurred. In the T0 protocol, the receiving side
signals that it requires the byte to be retransmitted in the case of detecting a parity error.
This is done by holding the I/O line low (normally the I/O line is set high preceding the
transfer of a byte). When the transmitting side detects this, it resends the byte that was not
received correctly.
The reader and the smartcard exchange data structures known as transmission protocol
data units (TPDUs). It consists of two distinct structures:
●
a command that is sent from the reader to the card
●
a response that is sent from the card to the reader
The command header includes the following five fields each of one byte in length:
●
CLA: class designation of the command set to establish a collection of instructions
●
INS: specifies a specific instruction from within the set of instructions
●
P1: used to specify the addressing used by the [CLA, INS] instruction
●
P2: also used to specify the addressing used by the [CLA, INS] instruction
●
P3: specifies the number of data bytes transferred to or from the card as part of the
[CLA, INS] instruction execution.
Each value of CLA defines an application-specific set of instructions. Table 8. below lists
values for some sets of instructions.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com