Moteur de recherche de fiches techniques de composants électroniques
  French  ▼
ALLDATASHEET.FR

X  

AN2646 Fiches technique(PDF) 40 Page - STMicroelectronics

No de pièce AN2646
Description  Smartcard interface with the STM8S microcontroller
PDF  43 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricant  STMICROELECTRONICS [STMicroelectronics]
Site Internet  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2646 Fiches technique(HTML) 40 Page - STMicroelectronics

Back Button AN2646 Datasheet HTML 35Page - STMicroelectronics AN2646 Datasheet HTML 36Page - STMicroelectronics AN2646 Datasheet HTML 37Page - STMicroelectronics AN2646 Datasheet HTML 38Page - STMicroelectronics AN2646 Datasheet HTML 39Page - STMicroelectronics AN2646 Datasheet HTML 40Page - STMicroelectronics AN2646 Datasheet HTML 41Page - STMicroelectronics AN2646 Datasheet HTML 42Page - STMicroelectronics AN2646 Datasheet HTML 43Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 40 / 43 page
background image
Smartcard interface example
AN2646 - Application note
40/43
7.2.3
Enabling/disabling the PIN1 (CHV1) code
At the beginning of the application, the PIN1 (CHV1) status is checked. This can be done by
a GET_RESPONSE command after a successful MasterRoot selection.
In this example, the PIN1 status is checked. If it is enabled, the PIN1 will be disabled to give
access to all files that have a secure access conditions.
To check the PIN1 status, the procedure is the following:
●
Select the MasterRoot directory using a SelectFile APDU command
●
Get the data returned after issuing the MasterRoot SelectFile command by sending a
GETRESPONSE command.
●
Check the bit8 of the 14 received bytes: if bit8 is 0: PIN1 is enabled else the PIN1 is
disabled.
To enable or disable PIN1, the CHV1 code must be sent to the card. The CHV1 code is 8-
byte long.
7.2.4
Verifying the PIN1 (CHV1) code
Some files have a restricted access conditions such as IMSI, CHV1 file, CHV2. The access
conditions of these files must be met for the user to be allowed to execute the restricted
operations (read, update, change CHV1).
To verify the PIN1 (CHV1) condition, the procedure is as follows:
●
Go to the directory which contain the file to be accessed
●
Use the Verify APDU command by presenting the CHV1 code
●
Select the file and execute the selected operation



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


Fiches technique Télécharger

Go To PDF Page


Lien URL



ALLDATASHEET vous a-t-il été utile ?  [ DONATE ] 

À propos de Alldatasheet   |   Publicité   |   Contactez-nous   |   Politique de confidentialité   |   Lien vers la fiche technique    |   Echange de liens   |   Fabricants
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