数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN2646 数据表(PDF) 21 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
标志 STMICROELECTRONICS - STMicroelectronics

AN2646 数据表(HTML) 21 Page - STMicroelectronics

Back Button 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 AN2646 Datasheet HTML 23Page - STMicroelectronics AN2646 Datasheet HTML 24Page - STMicroelectronics AN2646 Datasheet HTML 25Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 21 / 43 page
background image
AN2646 - Application note
ISO 7816-4 – smartcard commands
21/43
5.2.1
The ISO 7816-4 APDU
There are two types of messages used to support the ISO 7816-4 application protocols: the
command APDU (sent from the reader to the card) and the response APDU (sent from the
card to the reader).
Figure 7.
Command APDU structure
The command APDU consists of a header and a body (this can be seen in the diagram
above). The header includes CLA, INS, P1 and P2 fields. As in the T0 protocol, CLA and
INS specify an application class and instruction. P1 and P2 are used to qualify specific
instructions and are given specific definitions by each [CLA, INS] instruction. The body of
the APDU can vary in size and is used to transmit data to the card's APDU processor as
part of a command or to convey a response from the card to the reader. The Lc field
specifies the number of bytes to be transmitted to the card as part of the instruction, that is,
the length of the data field. The data field contains information that must be sent to the card
to allow its APDU processor to execute the command specified in the APDU. The Le field
specifies the number of bytes that will be returned to the reader in the response APDU.
The body of the APDU can take on four different forms:
Case 1: No data is transferred to or from the card, so the APDU only contains the
header.
Case 2: No data is transferred to the card, but data is returned from the card. The body
of the APDU only contains a non-null Le field.
Case 3: Data is transferred to the card, but none is returned from it. The body of the
APDU includes the Lc and data fields.
Case 4: Data is transferred to the card and is also returned from the card as a result of
the command. The body of the APDU includes the Lc, data and Le fields.
Figure 8.
Response APDU structure
The response APDU has a much simpler structure than that of the command APDU. It
consists of a body and a trailer. The body is either null or it includes a data field - depending
on the specific command. The length of the data field is determined by the Le field in the
corresponding command APDU. The trailer consists of up to two fields of status information
called SW1 and SW2. These fields return a status code in which one byte is used to specify



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


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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