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

X  

AN4430 Fiches technique(PDF) 33 Page - STMicroelectronics

No de pièce AN4430
Description  Designing an NFC Android Application for M24SR and M24LR devices
PDF  42 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricant  STMICROELECTRONICS [STMicroelectronics]
Site Internet  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4430 Fiches technique(HTML) 33 Page - STMicroelectronics

Back Button AN4430 Datasheet HTML 29Page - STMicroelectronics AN4430 Datasheet HTML 30Page - STMicroelectronics AN4430 Datasheet HTML 31Page - STMicroelectronics AN4430 Datasheet HTML 32Page - STMicroelectronics AN4430 Datasheet HTML 33Page - STMicroelectronics AN4430 Datasheet HTML 34Page - STMicroelectronics AN4430 Datasheet HTML 35Page - STMicroelectronics AN4430 Datasheet HTML 36Page - STMicroelectronics AN4430 Datasheet HTML 37Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 33 / 42 page
background image
DocID025722 Rev 1
33/42
AN4430
How to use ST NFC package to implement HW enhanced features
41
If the transceiveAnswer is equal to 0x9000 then the current physical tag is in application
select mode and the tag file structure can be addressed.
In the same way activity can send the specific command to address the CCfile. CCFile is
known to get a standardized ID: 0xE103. To get the CCFile, application sends the following
message sequence:
•
Select the file with the ID 0xE103
•
Read the file size of the CCFile
•
Read the binary of size previously request which is corresponding to the file.
private static final byte[] CCSelect = new byte[] {(byte) 0x00, (byte) 0xA4, 
   
   
  
     
   
 (byte) 0x00, (byte) 0x0C, (byte) 0x02, 
   
   
  
     
   
 (byte) 0xE1, (byte) 0x03 }; 
  
public int requestCCSelect() 
 
{ 
  
byte[] transcieveAnswer = new byte[] { (byte) 0x01 }; 
  
if (isoDepCurrentTag == null) 
   
isoDepCurrentTag = IsoDep.get(this.currentTag); 
  
int cpt = 0; 
 
  
while (( transcieveAnswer[0] == 1 || transcieveAnswer[0] == (byte)0xAA) && 
cpt <= 1) 
  
{ 
 
   
try { 
   
 
if (!isoDepCurrentTag.isConnected()) 
   
 
{ 
   
  
isoDepCurrentTag.connect(); 
   
  
isoDepCurrentTag.setTimeout(20); 
   
 
} 
   
 
transcieveAnswer = isoDepCurrentTag.transceive(CCSelect); 
   
 
 
   
 
if (transcieveAnswer[0] == (byte) 0x90 && transcieveAnswer[1] == 
(byte) 0x00) 
   
  
{ 
   
   
return 1; 
   
  
} 
   
  
else 
   
  
{ 
   
   
cpt++; 
   
   
return 0; 
   
  
} 
   
} catch (IOException e) { 
   
 
// TODO Auto‐generated catch block 
   
 
e.printStackTrace(); 
   
 
throw new RuntimeException("fail", e); 
   
} 
  
} 
   
return 0; 
 
} // End of requestCCSelect



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


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